summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-07-07 20:55:55 +0530
committerSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-07-20 15:50:42 +0530
commit79c865a53feef1828d8c93e953acbeb01ee2cb74 (patch)
tree32d769b9bb2e745f622607a8619463faab613779 /test
parent69298d36cfe1d5ad2ade0e64586959cc18c7ea4e (diff)
downloadnode-new-79c865a53feef1828d8c93e953acbeb01ee2cb74.tar.gz
test: changing process.exit to return while skipping tests
This patch uses `return` statement to skip the test instead of using `process.exit` call. PR-URL: https://github.com/nodejs/io.js/pull/2109 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'test')
-rw-r--r--test/internet/test-http-https-default-ports.js2
-rw-r--r--test/internet/test-tls-connnect-cnnic.js2
-rw-r--r--test/internet/test-tls-connnect-melissadata.js2
-rw-r--r--test/internet/test-tls-reuse-host-from-socket.js2
-rw-r--r--test/parallel/test-cluster-bind-privileged-port.js2
-rw-r--r--test/parallel/test-cluster-disconnect-unshared-udp.js2
-rw-r--r--test/parallel/test-cluster-shared-handle-bind-privileged-port.js4
-rw-r--r--test/parallel/test-crypto-authenticated.js2
-rw-r--r--test/parallel/test-crypto-binary-default.js2
-rw-r--r--test/parallel/test-crypto-certificate.js2
-rw-r--r--test/parallel/test-crypto-cipher-decipher.js2
-rw-r--r--test/parallel/test-crypto-dh-odd-key.js2
-rw-r--r--test/parallel/test-crypto-dh.js2
-rw-r--r--test/parallel/test-crypto-domain.js2
-rw-r--r--test/parallel/test-crypto-domains.js2
-rw-r--r--test/parallel/test-crypto-ecb.js2
-rw-r--r--test/parallel/test-crypto-from-binary.js2
-rw-r--r--test/parallel/test-crypto-hash-stream-pipe.js2
-rw-r--r--test/parallel/test-crypto-hash.js2
-rw-r--r--test/parallel/test-crypto-hmac.js2
-rw-r--r--test/parallel/test-crypto-padding-aes256.js2
-rw-r--r--test/parallel/test-crypto-padding.js2
-rw-r--r--test/parallel/test-crypto-pbkdf2.js2
-rw-r--r--test/parallel/test-crypto-random.js2
-rw-r--r--test/parallel/test-crypto-rsa-dsa.js2
-rw-r--r--test/parallel/test-crypto-sign-verify.js2
-rw-r--r--test/parallel/test-crypto-stream.js2
-rw-r--r--test/parallel/test-crypto-verify-failure.js2
-rw-r--r--test/parallel/test-crypto.js2
-rw-r--r--test/parallel/test-dgram-bind-default-address.js2
-rw-r--r--test/parallel/test-fs-readfile-error.js2
-rw-r--r--test/parallel/test-fs-readfile-pipe-large.js2
-rw-r--r--test/parallel/test-fs-readfile-pipe.js2
-rw-r--r--test/parallel/test-fs-readfilesync-pipe-large.js2
-rw-r--r--test/parallel/test-http-curl-chunk-problem.js2
-rw-r--r--test/parallel/test-http-localaddress.js2
-rw-r--r--test/parallel/test-http-url.parse-https.request.js2
-rw-r--r--test/parallel/test-https-agent-servername.js2
-rw-r--r--test/parallel/test-https-agent.js2
-rw-r--r--test/parallel/test-https-byteswritten.js2
-rw-r--r--test/parallel/test-https-client-checkServerIdentity.js2
-rw-r--r--test/parallel/test-https-client-get-url.js2
-rw-r--r--test/parallel/test-https-client-reject.js2
-rw-r--r--test/parallel/test-https-client-resume.js2
-rw-r--r--test/parallel/test-https-connecting-to-http.js2
-rw-r--r--test/parallel/test-https-drain.js2
-rw-r--r--test/parallel/test-https-eof-for-eom.js2
-rw-r--r--test/parallel/test-https-foafssl.js4
-rw-r--r--test/parallel/test-https-host-headers.js2
-rw-r--r--test/parallel/test-https-localaddress-bind-error.js2
-rw-r--r--test/parallel/test-https-localaddress.js4
-rw-r--r--test/parallel/test-https-pfx.js2
-rw-r--r--test/parallel/test-https-req-split.js2
-rw-r--r--test/parallel/test-https-set-timeout-server.js2
-rw-r--r--test/parallel/test-https-simple.js2
-rw-r--r--test/parallel/test-https-socket-options.js2
-rw-r--r--test/parallel/test-https-strict.js2
-rw-r--r--test/parallel/test-https-timeout-server-2.js2
-rw-r--r--test/parallel/test-https-timeout-server.js2
-rw-r--r--test/parallel/test-https-timeout.js2
-rw-r--r--test/parallel/test-https-truncate.js2
-rw-r--r--test/parallel/test-module-loading-error.js2
-rw-r--r--test/parallel/test-stream2-unpipe-drain.js2
-rw-r--r--test/parallel/test-tls-0-dns-altname.js2
-rw-r--r--test/parallel/test-tls-alert-handling.js4
-rw-r--r--test/parallel/test-tls-alert.js4
-rw-r--r--test/parallel/test-tls-async-cb-after-socket-end.js2
-rw-r--r--test/parallel/test-tls-cert-regression.js2
-rw-r--r--test/parallel/test-tls-check-server-identity.js2
-rw-r--r--test/parallel/test-tls-client-abort.js2
-rw-r--r--test/parallel/test-tls-client-abort2.js2
-rw-r--r--test/parallel/test-tls-client-default-ciphers.js2
-rw-r--r--test/parallel/test-tls-client-destroy-soon.js2
-rw-r--r--test/parallel/test-tls-client-reject.js2
-rw-r--r--test/parallel/test-tls-client-resume.js2
-rw-r--r--test/parallel/test-tls-client-verify.js2
-rw-r--r--test/parallel/test-tls-close-error.js2
-rw-r--r--test/parallel/test-tls-close-notify.js2
-rw-r--r--test/parallel/test-tls-cnnic-whitelist.js2
-rw-r--r--test/parallel/test-tls-connect-given-socket.js2
-rw-r--r--test/parallel/test-tls-connect-no-host.js2
-rw-r--r--test/parallel/test-tls-connect-pipe.js2
-rw-r--r--test/parallel/test-tls-connect-simple.js2
-rw-r--r--test/parallel/test-tls-connect.js2
-rw-r--r--test/parallel/test-tls-delayed-attach-error.js2
-rw-r--r--test/parallel/test-tls-delayed-attach.js2
-rw-r--r--test/parallel/test-tls-destroy-whilst-write.js2
-rw-r--r--test/parallel/test-tls-dhe.js2
-rw-r--r--test/parallel/test-tls-ecdh-disable.js2
-rw-r--r--test/parallel/test-tls-ecdh.js2
-rw-r--r--test/parallel/test-tls-econnreset.js2
-rw-r--r--test/parallel/test-tls-fast-writing.js2
-rw-r--r--test/parallel/test-tls-friendly-error-message.js2
-rw-r--r--test/parallel/test-tls-getcipher.js2
-rw-r--r--test/parallel/test-tls-handshake-error.js2
-rw-r--r--test/parallel/test-tls-handshake-nohang.js2
-rw-r--r--test/parallel/test-tls-hello-parser-failure.js2
-rw-r--r--test/parallel/test-tls-inception.js2
-rw-r--r--test/parallel/test-tls-interleave.js2
-rw-r--r--test/parallel/test-tls-invoke-queued.js2
-rw-r--r--test/parallel/test-tls-js-stream.js2
-rw-r--r--test/parallel/test-tls-junk-closes-server.js2
-rw-r--r--test/parallel/test-tls-key-mismatch.js2
-rw-r--r--test/parallel/test-tls-max-send-fragment.js2
-rw-r--r--test/parallel/test-tls-multi-key.js2
-rw-r--r--test/parallel/test-tls-no-cert-required.js2
-rw-r--r--test/parallel/test-tls-no-rsa-key.js2
-rw-r--r--test/parallel/test-tls-no-sslv23.js2
-rw-r--r--test/parallel/test-tls-no-sslv3.js4
-rw-r--r--test/parallel/test-tls-npn-server-client.js2
-rw-r--r--test/parallel/test-tls-ocsp-callback.js4
-rw-r--r--test/parallel/test-tls-on-empty-socket.js2
-rw-r--r--test/parallel/test-tls-over-http-tunnel.js2
-rw-r--r--test/parallel/test-tls-passphrase.js2
-rw-r--r--test/parallel/test-tls-pause.js2
-rw-r--r--test/parallel/test-tls-peer-certificate-encoding.js2
-rw-r--r--test/parallel/test-tls-peer-certificate-multi-keys.js2
-rw-r--r--test/parallel/test-tls-peer-certificate.js2
-rw-r--r--test/parallel/test-tls-request-timeout.js2
-rw-r--r--test/parallel/test-tls-securepair-server.js2
-rw-r--r--test/parallel/test-tls-server-verify.js4
-rw-r--r--test/parallel/test-tls-session-cache.js4
-rw-r--r--test/parallel/test-tls-set-ciphers.js4
-rw-r--r--test/parallel/test-tls-set-encoding.js2
-rw-r--r--test/parallel/test-tls-sni-option.js2
-rw-r--r--test/parallel/test-tls-sni-server-client.js2
-rw-r--r--test/parallel/test-tls-ticket-cluster.js2
-rw-r--r--test/parallel/test-tls-ticket.js2
-rw-r--r--test/parallel/test-tls-timeout-server-2.js2
-rw-r--r--test/parallel/test-tls-timeout-server.js2
-rw-r--r--test/parallel/test-tls-wrap-timeout.js2
-rw-r--r--test/parallel/test-tls-zero-clear-in.js2
-rw-r--r--test/parallel/test-tty-wrap.js2
-rw-r--r--test/parallel/test-zlib-random-byte-pipes.js2
-rw-r--r--test/pummel/test-abort-fatal-error.js2
-rw-r--r--test/pummel/test-dh-regr.js2
-rw-r--r--test/pummel/test-dtrace-jsstack.js2
-rw-r--r--test/pummel/test-https-ci-reneg-attack.js4
-rw-r--r--test/pummel/test-https-large-response.js2
-rw-r--r--test/pummel/test-https-no-reader.js2
-rw-r--r--test/pummel/test-keep-alive.js2
-rw-r--r--test/pummel/test-regress-GH-892.js2
-rw-r--r--test/pummel/test-tls-ci-reneg-attack.js4
-rw-r--r--test/pummel/test-tls-connect-memleak.js2
-rw-r--r--test/pummel/test-tls-securepair-client.js4
-rw-r--r--test/pummel/test-tls-server-large-request.js2
-rw-r--r--test/pummel/test-tls-session-timeout.js4
-rw-r--r--test/pummel/test-tls-throttle.js2
-rw-r--r--test/sequential/test-regress-GH-1531.js2
-rw-r--r--test/sequential/test-setproctitle.js2
-rw-r--r--test/sequential/test-tls-honorcipherorder.js2
151 files changed, 165 insertions, 165 deletions
diff --git a/test/internet/test-http-https-default-ports.js b/test/internet/test-http-https-default-ports.js
index 1133221e6b..dbc50c6503 100644
--- a/test/internet/test-http-https-default-ports.js
+++ b/test/internet/test-http-https-default-ports.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/internet/test-tls-connnect-cnnic.js b/test/internet/test-tls-connnect-cnnic.js
index d95685a3f7..01e15340c9 100644
--- a/test/internet/test-tls-connnect-cnnic.js
+++ b/test/internet/test-tls-connnect-cnnic.js
@@ -11,7 +11,7 @@
var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/internet/test-tls-connnect-melissadata.js b/test/internet/test-tls-connnect-melissadata.js
index 326e76cb24..36795f3553 100644
--- a/test/internet/test-tls-connnect-melissadata.js
+++ b/test/internet/test-tls-connnect-melissadata.js
@@ -5,7 +5,7 @@
var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/internet/test-tls-reuse-host-from-socket.js b/test/internet/test-tls-reuse-host-from-socket.js
index f386490815..2ba6b5c816 100644
--- a/test/internet/test-tls-reuse-host-from-socket.js
+++ b/test/internet/test-tls-reuse-host-from-socket.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-cluster-bind-privileged-port.js b/test/parallel/test-cluster-bind-privileged-port.js
index f08accc73a..6bb83efe5c 100644
--- a/test/parallel/test-cluster-bind-privileged-port.js
+++ b/test/parallel/test-cluster-bind-privileged-port.js
@@ -6,7 +6,7 @@ var net = require('net');
if (process.platform === 'win32') {
console.log('1..0 # Skipped: not reliable on Windows.');
- process.exit(0);
+ return;
}
if (process.getuid() === 0) {
diff --git a/test/parallel/test-cluster-disconnect-unshared-udp.js b/test/parallel/test-cluster-disconnect-unshared-udp.js
index 5b84e4c83d..0d3eb2a5ad 100644
--- a/test/parallel/test-cluster-disconnect-unshared-udp.js
+++ b/test/parallel/test-cluster-disconnect-unshared-udp.js
@@ -1,7 +1,7 @@
'use strict';
if (process.platform === 'win32') {
console.log('1..0 # Skipped: on windows, because clustered dgram is ENOTSUP');
- process.exit(0);
+ return;
}
var cluster = require('cluster');
diff --git a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
index 82417c25b9..188f6fb208 100644
--- a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
+++ b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
@@ -6,12 +6,12 @@ var net = require('net');
if (process.platform === 'win32') {
console.log('1..0 # Skipped: not reliable on Windows');
- process.exit(0);
+ return;
}
if (process.getuid() === 0) {
console.log('1..0 # Skipped: as this test should not be run as `root`');
- process.exit(0);
+ return;
}
if (cluster.isMaster) {
diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js
index 9e3ea8ccf1..2cc3627833 100644
--- a/test/parallel/test-crypto-authenticated.js
+++ b/test/parallel/test-crypto-authenticated.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-binary-default.js b/test/parallel/test-crypto-binary-default.js
index 8623ff4774..bebc91dc8e 100644
--- a/test/parallel/test-crypto-binary-default.js
+++ b/test/parallel/test-crypto-binary-default.js
@@ -9,7 +9,7 @@ var constants = require('constants');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
var tls = require('tls');
diff --git a/test/parallel/test-crypto-certificate.js b/test/parallel/test-crypto-certificate.js
index ab0d4ca9df..8286d58d1e 100644
--- a/test/parallel/test-crypto-certificate.js
+++ b/test/parallel/test-crypto-certificate.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-cipher-decipher.js b/test/parallel/test-crypto-cipher-decipher.js
index 931cf339bb..f33ea5482c 100644
--- a/test/parallel/test-crypto-cipher-decipher.js
+++ b/test/parallel/test-crypto-cipher-decipher.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-dh-odd-key.js b/test/parallel/test-crypto-dh-odd-key.js
index 1c7f4f69bb..abb4860b23 100644
--- a/test/parallel/test-crypto-dh-odd-key.js
+++ b/test/parallel/test-crypto-dh-odd-key.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-dh.js b/test/parallel/test-crypto-dh.js
index 4978ab2ebb..dfb912c0a4 100644
--- a/test/parallel/test-crypto-dh.js
+++ b/test/parallel/test-crypto-dh.js
@@ -5,7 +5,7 @@ var constants = require('constants');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-domain.js b/test/parallel/test-crypto-domain.js
index fe5e72982d..349ce7e1fc 100644
--- a/test/parallel/test-crypto-domain.js
+++ b/test/parallel/test-crypto-domain.js
@@ -5,7 +5,7 @@ var domain = require('domain');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-domains.js b/test/parallel/test-crypto-domains.js
index 55c67b490d..ca93d20fdf 100644
--- a/test/parallel/test-crypto-domains.js
+++ b/test/parallel/test-crypto-domains.js
@@ -8,7 +8,7 @@ var errors = 0;
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-ecb.js b/test/parallel/test-crypto-ecb.js
index f1541ddeb4..920b18a47f 100644
--- a/test/parallel/test-crypto-ecb.js
+++ b/test/parallel/test-crypto-ecb.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-from-binary.js b/test/parallel/test-crypto-from-binary.js
index 4c8d7338dd..78e3b45677 100644
--- a/test/parallel/test-crypto-from-binary.js
+++ b/test/parallel/test-crypto-from-binary.js
@@ -8,7 +8,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-hash-stream-pipe.js b/test/parallel/test-crypto-hash-stream-pipe.js
index 23feccea38..c41f91241d 100644
--- a/test/parallel/test-crypto-hash-stream-pipe.js
+++ b/test/parallel/test-crypto-hash-stream-pipe.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-hash.js b/test/parallel/test-crypto-hash.js
index 5c542406cb..95bb1bc7d8 100644
--- a/test/parallel/test-crypto-hash.js
+++ b/test/parallel/test-crypto-hash.js
@@ -6,7 +6,7 @@ var path = require('path');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-hmac.js b/test/parallel/test-crypto-hmac.js
index e234bd9160..692954caab 100644
--- a/test/parallel/test-crypto-hmac.js
+++ b/test/parallel/test-crypto-hmac.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-padding-aes256.js b/test/parallel/test-crypto-padding-aes256.js
index db75a07c9e..550aa5c061 100644
--- a/test/parallel/test-crypto-padding-aes256.js
+++ b/test/parallel/test-crypto-padding-aes256.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-padding.js b/test/parallel/test-crypto-padding.js
index 11b1729fde..d4cb7190e2 100644
--- a/test/parallel/test-crypto-padding.js
+++ b/test/parallel/test-crypto-padding.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-pbkdf2.js b/test/parallel/test-crypto-pbkdf2.js
index 88be15b68c..885831bad1 100644
--- a/test/parallel/test-crypto-pbkdf2.js
+++ b/test/parallel/test-crypto-pbkdf2.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-random.js b/test/parallel/test-crypto-random.js
index cac0c9b86c..3454796a6b 100644
--- a/test/parallel/test-crypto-random.js
+++ b/test/parallel/test-crypto-random.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-rsa-dsa.js b/test/parallel/test-crypto-rsa-dsa.js
index 127bbfb26d..ebbc15c2d4 100644
--- a/test/parallel/test-crypto-rsa-dsa.js
+++ b/test/parallel/test-crypto-rsa-dsa.js
@@ -6,7 +6,7 @@ var constants = require('constants');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-sign-verify.js b/test/parallel/test-crypto-sign-verify.js
index fb811e7f12..e4cb9fc41c 100644
--- a/test/parallel/test-crypto-sign-verify.js
+++ b/test/parallel/test-crypto-sign-verify.js
@@ -5,7 +5,7 @@ var fs = require('fs');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-stream.js b/test/parallel/test-crypto-stream.js
index fd970e061b..727e6a16a7 100644
--- a/test/parallel/test-crypto-stream.js
+++ b/test/parallel/test-crypto-stream.js
@@ -6,7 +6,7 @@ var util = require('util');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-crypto-verify-failure.js b/test/parallel/test-crypto-verify-failure.js
index a4a9ec6981..f315aed1a9 100644
--- a/test/parallel/test-crypto-verify-failure.js
+++ b/test/parallel/test-crypto-verify-failure.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
var tls = require('tls');
diff --git a/test/parallel/test-crypto.js b/test/parallel/test-crypto.js
index 47f0430f16..55b57e6515 100644
--- a/test/parallel/test-crypto.js
+++ b/test/parallel/test-crypto.js
@@ -5,7 +5,7 @@ var util = require('util');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-dgram-bind-default-address.js b/test/parallel/test-dgram-bind-default-address.js
index ad42f43829..75069e3618 100644
--- a/test/parallel/test-dgram-bind-default-address.js
+++ b/test/parallel/test-dgram-bind-default-address.js
@@ -6,7 +6,7 @@ var dgram = require('dgram');
// skip test in FreeBSD jails since 0.0.0.0 will resolve to default interface
if (common.inFreeBSDJail) {
console.log('1..0 # Skipped: In a FreeBSD jail');
- process.exit();
+ return;
}
dgram.createSocket('udp4').bind(common.PORT + 0, common.mustCall(function() {
diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js
index f782aa585f..c198d7d0eb 100644
--- a/test/parallel/test-fs-readfile-error.js
+++ b/test/parallel/test-fs-readfile-error.js
@@ -8,7 +8,7 @@ var path = require('path');
// the directory there.
if (process.platform === 'freebsd') {
console.log('1..0 # Skipped: platform not supported.');
- process.exit();
+ return;
}
var callbacks = 0;
diff --git a/test/parallel/test-fs-readfile-pipe-large.js b/test/parallel/test-fs-readfile-pipe-large.js
index a229d8fba7..66f955a561 100644
--- a/test/parallel/test-fs-readfile-pipe-large.js
+++ b/test/parallel/test-fs-readfile-pipe-large.js
@@ -7,7 +7,7 @@ var path = require('path');
if (process.platform === 'win32') {
console.log('1..0 # Skipped: No /dev/stdin on windows.');
- process.exit();
+ return;
}
var fs = require('fs');
diff --git a/test/parallel/test-fs-readfile-pipe.js b/test/parallel/test-fs-readfile-pipe.js
index 2874b0ec04..2ac547e5c7 100644
--- a/test/parallel/test-fs-readfile-pipe.js
+++ b/test/parallel/test-fs-readfile-pipe.js
@@ -6,7 +6,7 @@ var assert = require('assert');
if (process.platform === 'win32') {
console.log('1..0 # Skipped: No /dev/stdin on windows.');
- process.exit();
+ return;
}
var fs = require('fs');
diff --git a/test/parallel/test-fs-readfilesync-pipe-large.js b/test/parallel/test-fs-readfilesync-pipe-large.js
index d8a346e756..e9045b27f1 100644
--- a/test/parallel/test-fs-readfilesync-pipe-large.js
+++ b/test/parallel/test-fs-readfilesync-pipe-large.js
@@ -7,7 +7,7 @@ var path = require('path');
if (process.platform === 'win32') {
console.log('1..0 # Skipped: No /dev/stdin on windows.');
- process.exit();
+ return;
}
var fs = require('fs');
diff --git a/test/parallel/test-http-curl-chunk-problem.js b/test/parallel/test-http-curl-chunk-problem.js
index 0e952f1d7e..f3e3a24328 100644
--- a/test/parallel/test-http-curl-chunk-problem.js
+++ b/test/parallel/test-http-curl-chunk-problem.js
@@ -3,7 +3,7 @@ var common = require('../common');
var assert = require('assert');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
// http://groups.google.com/group/nodejs/browse_thread/thread/f66cd3c960406919
diff --git a/test/parallel/test-http-localaddress.js b/test/parallel/test-http-localaddress.js
index 5d95a998f6..ac5de82026 100644
--- a/test/parallel/test-http-localaddress.js
+++ b/test/parallel/test-http-localaddress.js
@@ -5,7 +5,7 @@ var http = require('http'),
if (!common.hasMultiLocalhost()) {
console.log('1..0 # Skipped: platform-specific test.');
- process.exit();
+ return;
}
var server = http.createServer(function(req, res) {
diff --git a/test/parallel/test-http-url.parse-https.request.js b/test/parallel/test-http-url.parse-https.request.js
index 7fb749b069..10c40ec031 100644
--- a/test/parallel/test-http-url.parse-https.request.js
+++ b/test/parallel/test-http-url.parse-https.request.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-agent-servername.js b/test/parallel/test-https-agent-servername.js
index 5af9af9818..2be40836a0 100644
--- a/test/parallel/test-https-agent-servername.js
+++ b/test/parallel/test-https-agent-servername.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-agent.js b/test/parallel/test-https-agent.js
index a26882844e..a3bb28975a 100644
--- a/test/parallel/test-https-agent.js
+++ b/test/parallel/test-https-agent.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-byteswritten.js b/test/parallel/test-https-byteswritten.js
index 3e50b6f84d..5163eccc26 100644
--- a/test/parallel/test-https-byteswritten.js
+++ b/test/parallel/test-https-byteswritten.js
@@ -6,7 +6,7 @@ var http = require('http');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-client-checkServerIdentity.js b/test/parallel/test-https-client-checkServerIdentity.js
index 8f4aad7f5e..e49427dcc7 100644
--- a/test/parallel/test-https-client-checkServerIdentity.js
+++ b/test/parallel/test-https-client-checkServerIdentity.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-client-get-url.js b/test/parallel/test-https-client-get-url.js
index 66c11cd2db..e8922de943 100644
--- a/test/parallel/test-https-client-get-url.js
+++ b/test/parallel/test-https-client-get-url.js
@@ -7,7 +7,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-client-reject.js b/test/parallel/test-https-client-reject.js
index 55c335289d..fc76e5b80f 100644
--- a/test/parallel/test-https-client-reject.js
+++ b/test/parallel/test-https-client-reject.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-client-resume.js b/test/parallel/test-https-client-resume.js
index 024c5fa17f..8f849b14b5 100644
--- a/test/parallel/test-https-client-resume.js
+++ b/test/parallel/test-https-client-resume.js
@@ -7,7 +7,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-connecting-to-http.js b/test/parallel/test-https-connecting-to-http.js
index 64adb77603..755abf9427 100644
--- a/test/parallel/test-https-connecting-to-http.js
+++ b/test/parallel/test-https-connecting-to-http.js
@@ -7,7 +7,7 @@ var http = require('http');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-drain.js b/test/parallel/test-https-drain.js
index 0ce55b0849..43113ef980 100644
--- a/test/parallel/test-https-drain.js
+++ b/test/parallel/test-https-drain.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-eof-for-eom.js b/test/parallel/test-https-eof-for-eom.js
index 78a2f3828c..0445625bac 100644
--- a/test/parallel/test-https-eof-for-eom.js
+++ b/test/parallel/test-https-eof-for-eom.js
@@ -12,7 +12,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
var tls = require('tls');
diff --git a/test/parallel/test-https-foafssl.js b/test/parallel/test-https-foafssl.js
index 5ada00c924..7a3ceb9404 100644
--- a/test/parallel/test-https-foafssl.js
+++ b/test/parallel/test-https-foafssl.js
@@ -3,7 +3,7 @@ var common = require('../common');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
var assert = require('assert');
@@ -14,7 +14,7 @@ var spawn = require('child_process').spawn;
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-host-headers.js b/test/parallel/test-https-host-headers.js
index 6a828d4aab..0ea32f320e 100644
--- a/test/parallel/test-https-host-headers.js
+++ b/test/parallel/test-https-host-headers.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-localaddress-bind-error.js b/test/parallel/test-https-localaddress-bind-error.js
index 21e630dee4..b3cb4ffe6b 100644
--- a/test/parallel/test-https-localaddress-bind-error.js
+++ b/test/parallel/test-https-localaddress-bind-error.js
@@ -5,7 +5,7 @@ var fs = require('fs');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-localaddress.js b/test/parallel/test-https-localaddress.js
index 94a301f8b0..a330c4881a 100644
--- a/test/parallel/test-https-localaddress.js
+++ b/test/parallel/test-https-localaddress.js
@@ -5,13 +5,13 @@ var common = require('../common'),
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
if (!common.hasMultiLocalhost()) {
console.log('1..0 # Skipped: platform-specific test.');
- process.exit();
+ return;
}
var options = {
diff --git a/test/parallel/test-https-pfx.js b/test/parallel/test-https-pfx.js
index f396858833..5e080b4e3d 100644
--- a/test/parallel/test-https-pfx.js
+++ b/test/parallel/test-https-pfx.js
@@ -5,7 +5,7 @@ var fs = require('fs');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-req-split.js b/test/parallel/test-https-req-split.js
index 4fd48eb161..479fff36b4 100644
--- a/test/parallel/test-https-req-split.js
+++ b/test/parallel/test-https-req-split.js
@@ -7,7 +7,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-set-timeout-server.js b/test/parallel/test-https-set-timeout-server.js
index c10878110c..bfea7c4d5d 100644
--- a/test/parallel/test-https-set-timeout-server.js
+++ b/test/parallel/test-https-set-timeout-server.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-simple.js b/test/parallel/test-https-simple.js
index c2b93fdef8..2401ad2586 100644
--- a/test/parallel/test-https-simple.js
+++ b/test/parallel/test-https-simple.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-socket-options.js b/test/parallel/test-https-socket-options.js
index 52e46bd20b..44e179f27a 100644
--- a/test/parallel/test-https-socket-options.js
+++ b/test/parallel/test-https-socket-options.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js
index 46d65ae393..65ebfabde2 100644
--- a/test/parallel/test-https-strict.js
+++ b/test/parallel/test-https-strict.js
@@ -7,7 +7,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-timeout-server-2.js b/test/parallel/test-https-timeout-server-2.js
index 5da7c83326..9970688fe7 100644
--- a/test/parallel/test-https-timeout-server-2.js
+++ b/test/parallel/test-https-timeout-server-2.js
@@ -5,7 +5,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-timeout-server.js b/test/parallel/test-https-timeout-server.js
index 2707c30d18..0db7ad533d 100644
--- a/test/parallel/test-https-timeout-server.js
+++ b/test/parallel/test-https-timeout-server.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-timeout.js b/test/parallel/test-https-timeout.js
index f6f1375180..7f34c18bec 100644
--- a/test/parallel/test-https-timeout.js
+++ b/test/parallel/test-https-timeout.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-https-truncate.js b/test/parallel/test-https-truncate.js
index 3ac87ba352..e77bf29ed2 100644
--- a/test/parallel/test-https-truncate.js
+++ b/test/parallel/test-https-truncate.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-module-loading-error.js b/test/parallel/test-module-loading-error.js
index 346b04f635..f430b65d8c 100644
--- a/test/parallel/test-module-loading-error.js
+++ b/test/parallel/test-module-loading-error.js
@@ -14,7 +14,7 @@ var dlerror_msg = error_desc[process.platform];
if (!dlerror_msg) {
console.log('1..0 # Skipped: platform not supported.');
- process.exit();
+ return;
}
try {
diff --git a/test/parallel/test-stream2-unpipe-drain.js b/test/parallel/test-stream2-unpipe-drain.js
index a430e4a58d..daad70a282 100644
--- a/test/parallel/test-stream2-unpipe-drain.js
+++ b/test/parallel/test-stream2-unpipe-drain.js
@@ -5,7 +5,7 @@ var stream = require('stream');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/parallel/test-tls-0-dns-altname.js b/test/parallel/test-tls-0-dns-altname.js
index fd10206a12..61458142bc 100644
--- a/test/parallel/test-tls-0-dns-altname.js
+++ b/test/parallel/test-tls-0-dns-altname.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-alert-handling.js b/test/parallel/test-tls-alert-handling.js
index fc9d7cdce2..5e63384b00 100644
--- a/test/parallel/test-tls-alert-handling.js
+++ b/test/parallel/test-tls-alert-handling.js
@@ -4,12 +4,12 @@ var assert = require('assert');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-alert.js b/test/parallel/test-tls-alert.js
index aa42565a70..10b4331250 100644
--- a/test/parallel/test-tls-alert.js
+++ b/test/parallel/test-tls-alert.js
@@ -4,12 +4,12 @@ var assert = require('assert');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-async-cb-after-socket-end.js b/test/parallel/test-tls-async-cb-after-socket-end.js
index db9db87f59..87258cb32c 100644
--- a/test/parallel/test-tls-async-cb-after-socket-end.js
+++ b/test/parallel/test-tls-async-cb-after-socket-end.js
@@ -9,7 +9,7 @@ var constants = require('constants');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-cert-regression.js b/test/parallel/test-tls-cert-regression.js
index 24bc424274..6e546600b6 100644
--- a/test/parallel/test-tls-cert-regression.js
+++ b/test/parallel/test-tls-cert-regression.js
@@ -4,7 +4,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-check-server-identity.js b/test/parallel/test-tls-check-server-identity.js
index e40cbb0f9d..e659f40aa9 100644
--- a/test/parallel/test-tls-check-server-identity.js
+++ b/test/parallel/test-tls-check-server-identity.js
@@ -5,7 +5,7 @@ var util = require('util');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-client-abort.js b/test/parallel/test-tls-client-abort.js
index 25e44716c1..934162c35a 100644
--- a/test/parallel/test-tls-client-abort.js
+++ b/test/parallel/test-tls-client-abort.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-client-abort2.js b/test/parallel/test-tls-client-abort2.js
index b64482b58d..194882e7d5 100644
--- a/test/parallel/test-tls-client-abort2.js
+++ b/test/parallel/test-tls-client-abort2.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-client-default-ciphers.js b/test/parallel/test-tls-client-default-ciphers.js
index 5da5717331..e38671fd6f 100644
--- a/test/parallel/test-tls-client-default-ciphers.js
+++ b/test/parallel/test-tls-client-default-ciphers.js
@@ -4,7 +4,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-client-destroy-soon.js b/test/parallel/test-tls-client-destroy-soon.js
index 6a1a899103..554ac686db 100644
--- a/test/parallel/test-tls-client-destroy-soon.js
+++ b/test/parallel/test-tls-client-destroy-soon.js
@@ -8,7 +8,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-client-reject.js b/test/parallel/test-tls-client-reject.js
index 9e09493c6a..f2b93393e7 100644
--- a/test/parallel/test-tls-client-reject.js
+++ b/test/parallel/test-tls-client-reject.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-client-resume.js b/test/parallel/test-tls-client-resume.js
index 8b36224a7f..002151b7d8 100644
--- a/test/parallel/test-tls-client-resume.js
+++ b/test/parallel/test-tls-client-resume.js
@@ -8,7 +8,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-client-verify.js b/test/parallel/test-tls-client-verify.js
index f206929f59..b4014ab351 100644
--- a/test/parallel/test-tls-client-verify.js
+++ b/test/parallel/test-tls-client-verify.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-close-error.js b/test/parallel/test-tls-close-error.js
index 556fb1df12..5c5a797c28 100644
--- a/test/parallel/test-tls-close-error.js
+++ b/test/parallel/test-tls-close-error.js
@@ -5,7 +5,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-close-notify.js b/test/parallel/test-tls-close-notify.js
index cfb9aab0d9..5cc3021ab8 100644
--- a/test/parallel/test-tls-close-notify.js
+++ b/test/parallel/test-tls-close-notify.js
@@ -4,7 +4,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-cnnic-whitelist.js b/test/parallel/test-tls-cnnic-whitelist.js
index 759ce3230f..2449a5d6e2 100644
--- a/test/parallel/test-tls-cnnic-whitelist.js
+++ b/test/parallel/test-tls-cnnic-whitelist.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-connect-given-socket.js b/test/parallel/test-tls-connect-given-socket.js
index 902b67aa51..2fd44d8701 100644
--- a/test/parallel/test-tls-connect-given-socket.js
+++ b/test/parallel/test-tls-connect-given-socket.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-connect-no-host.js b/test/parallel/test-tls-connect-no-host.js
index 6d04890d4d..3f347f5e17 100644
--- a/test/parallel/test-tls-connect-no-host.js
+++ b/test/parallel/test-tls-connect-no-host.js
@@ -3,7 +3,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-connect-pipe.js b/test/parallel/test-tls-connect-pipe.js
index bded532720..4d607a8883 100644
--- a/test/parallel/test-tls-connect-pipe.js
+++ b/test/parallel/test-tls-connect-pipe.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-connect-simple.js b/test/parallel/test-tls-connect-simple.js
index feaa7c887b..f56b4baed7 100644
--- a/test/parallel/test-tls-connect-simple.js
+++ b/test/parallel/test-tls-connect-simple.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-connect.js b/test/parallel/test-tls-connect.js
index 160d874bed..ce4317ac30 100644
--- a/test/parallel/test-tls-connect.js
+++ b/test/parallel/test-tls-connect.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-delayed-attach-error.js b/test/parallel/test-tls-delayed-attach-error.js
index e2dbc5815d..aec76d11b5 100644
--- a/test/parallel/test-tls-delayed-attach-error.js
+++ b/test/parallel/test-tls-delayed-attach-error.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
var fs = require('fs');
diff --git a/test/parallel/test-tls-delayed-attach.js b/test/parallel/test-tls-delayed-attach.js
index a5b312d163..2fbafd8ecb 100644
--- a/test/parallel/test-tls-delayed-attach.js
+++ b/test/parallel/test-tls-delayed-attach.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-destroy-whilst-write.js b/test/parallel/test-tls-destroy-whilst-write.js
index 8b865fab17..f42ed1d4ea 100644
--- a/test/parallel/test-tls-destroy-whilst-write.js
+++ b/test/parallel/test-tls-destroy-whilst-write.js
@@ -4,7 +4,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
var stream = require('stream');
diff --git a/test/parallel/test-tls-dhe.js b/test/parallel/test-tls-dhe.js
index 92fff3f221..7dab1faa41 100644
--- a/test/parallel/test-tls-dhe.js
+++ b/test/parallel/test-tls-dhe.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-ecdh-disable.js b/test/parallel/test-tls-ecdh-disable.js
index 1ed4ea3573..454e177ed7 100644
--- a/test/parallel/test-tls-ecdh-disable.js
+++ b/test/parallel/test-tls-ecdh-disable.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-ecdh.js b/test/parallel/test-tls-ecdh.js
index cd144d79e0..2ffa970f38 100644
--- a/test/parallel/test-tls-ecdh.js
+++ b/test/parallel/test-tls-ecdh.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-econnreset.js b/test/parallel/test-tls-econnreset.js
index f451df6847..6ef629a159 100644
--- a/test/parallel/test-tls-econnreset.js
+++ b/test/parallel/test-tls-econnreset.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-fast-writing.js b/test/parallel/test-tls-fast-writing.js
index 24e8bfc688..009fa40b63 100644
--- a/test/parallel/test-tls-fast-writing.js
+++ b/test/parallel/test-tls-fast-writing.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-friendly-error-message.js b/test/parallel/test-tls-friendly-error-message.js
index b2f2de137d..ee2c21f6b5 100644
--- a/test/parallel/test-tls-friendly-error-message.js
+++ b/test/parallel/test-tls-friendly-error-message.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-getcipher.js b/test/parallel/test-tls-getcipher.js
index 12e3b8f9c6..62209c771c 100644
--- a/test/parallel/test-tls-getcipher.js
+++ b/test/parallel/test-tls-getcipher.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-handshake-error.js b/test/parallel/test-tls-handshake-error.js
index dbe91d0943..f33177455f 100644
--- a/test/parallel/test-tls-handshake-error.js
+++ b/test/parallel/test-tls-handshake-error.js
@@ -5,7 +5,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-handshake-nohang.js b/test/parallel/test-tls-handshake-nohang.js
index 181d6408e0..ae07551ef9 100644
--- a/test/parallel/test-tls-handshake-nohang.js
+++ b/test/parallel/test-tls-handshake-nohang.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-hello-parser-failure.js b/test/parallel/test-tls-hello-parser-failure.js
index 3ed82c536a..3378583af2 100644
--- a/test/parallel/test-tls-hello-parser-failure.js
+++ b/test/parallel/test-tls-hello-parser-failure.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js
index 76e6fe077f..df03cf934f 100644
--- a/test/parallel/test-tls-inception.js
+++ b/test/parallel/test-tls-inception.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-interleave.js b/test/parallel/test-tls-interleave.js
index e726e16998..fd93a05e59 100644
--- a/test/parallel/test-tls-interleave.js
+++ b/test/parallel/test-tls-interleave.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-invoke-queued.js b/test/parallel/test-tls-invoke-queued.js
index f9607e1f4f..f833108ea3 100644
--- a/test/parallel/test-tls-invoke-queued.js
+++ b/test/parallel/test-tls-invoke-queued.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-js-stream.js b/test/parallel/test-tls-js-stream.js
index 292bd4fd91..1c5e749911 100644
--- a/test/parallel/test-tls-js-stream.js
+++ b/test/parallel/test-tls-js-stream.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-junk-closes-server.js b/test/parallel/test-tls-junk-closes-server.js
index 01a83ef214..5ee4e025f5 100644
--- a/test/parallel/test-tls-junk-closes-server.js
+++ b/test/parallel/test-tls-junk-closes-server.js
@@ -3,7 +3,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-key-mismatch.js b/test/parallel/test-tls-key-mismatch.js
index 35da468749..f7919c545a 100644
--- a/test/parallel/test-tls-key-mismatch.js
+++ b/test/parallel/test-tls-key-mismatch.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
var fs = require('fs');
diff --git a/test/parallel/test-tls-max-send-fragment.js b/test/parallel/test-tls-max-send-fragment.js
index 3e41cfa45c..cc9413b81e 100644
--- a/test/parallel/test-tls-max-send-fragment.js
+++ b/test/parallel/test-tls-max-send-fragment.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-multi-key.js b/test/parallel/test-tls-multi-key.js
index 76aa97d1ff..4c9fb4285f 100644
--- a/test/parallel/test-tls-multi-key.js
+++ b/test/parallel/test-tls-multi-key.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
var fs = require('fs');
diff --git a/test/parallel/test-tls-no-cert-required.js b/test/parallel/test-tls-no-cert-required.js
index 02bbb6b664..97863606cf 100644
--- a/test/parallel/test-tls-no-cert-required.js
+++ b/test/parallel/test-tls-no-cert-required.js
@@ -3,7 +3,7 @@ var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-no-rsa-key.js b/test/parallel/test-tls-no-rsa-key.js
index fd64438ead..61e8a3b7ca 100644
--- a/test/parallel/test-tls-no-rsa-key.js
+++ b/test/parallel/test-tls-no-rsa-key.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-no-sslv23.js b/test/parallel/test-tls-no-sslv23.js
index 931bf5dba0..702019a0bc 100644
--- a/test/parallel/test-tls-no-sslv23.js
+++ b/test/parallel/test-tls-no-sslv23.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-no-sslv3.js b/test/parallel/test-tls-no-sslv3.js
index 4bdf1dfa58..2671bbcad5 100644
--- a/test/parallel/test-tls-no-sslv3.js
+++ b/test/parallel/test-tls-no-sslv3.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
@@ -13,7 +13,7 @@ var spawn = require('child_process').spawn;
if (common.opensslCli === false) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
var cert = fs.readFileSync(common.fixturesDir + '/test_cert.pem');
diff --git a/test/parallel/test-tls-npn-server-client.js b/test/parallel/test-tls-npn-server-client.js
index 5d6022fd64..bdccaaf17e 100644
--- a/test/parallel/test-tls-npn-server-client.js
+++ b/test/parallel/test-tls-npn-server-client.js
@@ -11,7 +11,7 @@ var common = require('../common'),
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-ocsp-callback.js b/test/parallel/test-tls-ocsp-callback.js
index e61e49d292..2dbfc6c164 100644
--- a/test/parallel/test-tls-ocsp-callback.js
+++ b/test/parallel/test-tls-ocsp-callback.js
@@ -8,12 +8,12 @@ if (!process.features.tls_ocsp) {
}
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-on-empty-socket.js b/test/parallel/test-tls-on-empty-socket.js
index 8d95a99720..84c95a99db 100644
--- a/test/parallel/test-tls-on-empty-socket.js
+++ b/test/parallel/test-tls-on-empty-socket.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-over-http-tunnel.js b/test/parallel/test-tls-over-http-tunnel.js
index cf7ab78685..cf3ad776f7 100644
--- a/test/parallel/test-tls-over-http-tunnel.js
+++ b/test/parallel/test-tls-over-http-tunnel.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/parallel/test-tls-passphrase.js b/test/parallel/test-tls-passphrase.js
index ce68fce5f0..0501539955 100644
--- a/test/parallel/test-tls-passphrase.js
+++ b/test/parallel/test-tls-passphrase.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-pause.js b/test/parallel/test-tls-pause.js
index f9d68f1395..3dc3e53d47 100644
--- a/test/parallel/test-tls-pause.js
+++ b/test/parallel/test-tls-pause.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-peer-certificate-encoding.js b/test/parallel/test-tls-peer-certificate-encoding.js
index 533b9126cd..771c8181c8 100644
--- a/test/parallel/test-tls-peer-certificate-encoding.js
+++ b/test/parallel/test-tls-peer-certificate-encoding.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-peer-certificate-multi-keys.js b/test/parallel/test-tls-peer-certificate-multi-keys.js
index fde55af50b..3cfd6420cd 100644
--- a/test/parallel/test-tls-peer-certificate-multi-keys.js
+++ b/test/parallel/test-tls-peer-certificate-multi-keys.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-peer-certificate.js b/test/parallel/test-tls-peer-certificate.js
index 8164154779..4fa1beb6ac 100644
--- a/test/parallel/test-tls-peer-certificate.js
+++ b/test/parallel/test-tls-peer-certificate.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-request-timeout.js b/test/parallel/test-tls-request-timeout.js
index 8915dee1f1..a9b1c78c91 100644
--- a/test/parallel/test-tls-request-timeout.js
+++ b/test/parallel/test-tls-request-timeout.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-securepair-server.js b/test/parallel/test-tls-securepair-server.js
index 7ddba939ba..8054162078 100644
--- a/test/parallel/test-tls-securepair-server.js
+++ b/test/parallel/test-tls-securepair-server.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-server-verify.js b/test/parallel/test-tls-server-verify.js
index 825fdfc950..cbdf376c7f 100644
--- a/test/parallel/test-tls-server-verify.js
+++ b/test/parallel/test-tls-server-verify.js
@@ -3,7 +3,7 @@ var common = require('../common');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
// This is a rather complex test which sets up various TLS servers with node
@@ -101,7 +101,7 @@ var testCases =
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-session-cache.js b/test/parallel/test-tls-session-cache.js
index d4a8bdf8d4..d38fed6a99 100644
--- a/test/parallel/test-tls-session-cache.js
+++ b/test/parallel/test-tls-session-cache.js
@@ -3,12 +3,12 @@ var common = require('../common');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
doTest({ tickets: false }, function() {
diff --git a/test/parallel/test-tls-set-ciphers.js b/test/parallel/test-tls-set-ciphers.js
index 2569d4bfd0..666ef1fa80 100644
--- a/test/parallel/test-tls-set-ciphers.js
+++ b/test/parallel/test-tls-set-ciphers.js
@@ -3,12 +3,12 @@ var common = require('../common');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var assert = require('assert');
diff --git a/test/parallel/test-tls-set-encoding.js b/test/parallel/test-tls-set-encoding.js
index fa0d72b5ad..ec728dad0c 100644
--- a/test/parallel/test-tls-set-encoding.js
+++ b/test/parallel/test-tls-set-encoding.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-sni-option.js b/test/parallel/test-tls-sni-option.js
index 733510a0c4..92c5aadfcb 100644
--- a/test/parallel/test-tls-sni-option.js
+++ b/test/parallel/test-tls-sni-option.js
@@ -11,7 +11,7 @@ var common = require('../common'),
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-sni-server-client.js b/test/parallel/test-tls-sni-server-client.js
index 7bda717bb7..5a1894cd6e 100644
--- a/test/parallel/test-tls-sni-server-client.js
+++ b/test/parallel/test-tls-sni-server-client.js
@@ -11,7 +11,7 @@ var common = require('../common'),
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-ticket-cluster.js b/test/parallel/test-tls-ticket-cluster.js
index a9798df059..fc0f1d5e85 100644
--- a/test/parallel/test-tls-ticket-cluster.js
+++ b/test/parallel/test-tls-ticket-cluster.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-ticket.js b/test/parallel/test-tls-ticket.js
index 450f6b54a5..6c3ad01fa1 100644
--- a/test/parallel/test-tls-ticket.js
+++ b/test/parallel/test-tls-ticket.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-timeout-server-2.js b/test/parallel/test-tls-timeout-server-2.js
index f2dca0b9ab..29cce0f6af 100644
--- a/test/parallel/test-tls-timeout-server-2.js
+++ b/test/parallel/test-tls-timeout-server-2.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-timeout-server.js b/test/parallel/test-tls-timeout-server.js
index 4a9265079b..ee932c9b1f 100644
--- a/test/parallel/test-tls-timeout-server.js
+++ b/test/parallel/test-tls-timeout-server.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-wrap-timeout.js b/test/parallel/test-tls-wrap-timeout.js
index af1d843178..d9e260f99e 100644
--- a/test/parallel/test-tls-wrap-timeout.js
+++ b/test/parallel/test-tls-wrap-timeout.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tls-zero-clear-in.js b/test/parallel/test-tls-zero-clear-in.js
index 6eeba92585..33db08a785 100644
--- a/test/parallel/test-tls-zero-clear-in.js
+++ b/test/parallel/test-tls-zero-clear-in.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/parallel/test-tty-wrap.js b/test/parallel/test-tty-wrap.js
index 815220865f..dbe7b6890f 100644
--- a/test/parallel/test-tty-wrap.js
+++ b/test/parallel/test-tty-wrap.js
@@ -7,7 +7,7 @@ var isTTY = process.binding('tty_wrap').isTTY;
if (isTTY(1) == false) {
console.log('1..0 # Skipped: fd 1 is not a tty.');
- process.exit(0);
+ return;
}
var handle = new TTY(1);
diff --git a/test/parallel/test-zlib-random-byte-pipes.js b/test/parallel/test-zlib-random-byte-pipes.js
index 0f34f7ac4f..4b28b38718 100644
--- a/test/parallel/test-zlib-random-byte-pipes.js
+++ b/test/parallel/test-zlib-random-byte-pipes.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/pummel/test-abort-fatal-error.js b/test/pummel/test-abort-fatal-error.js
index fb3f0944d7..0d31267a64 100644
--- a/test/pummel/test-abort-fatal-error.js
+++ b/test/pummel/test-abort-fatal-error.js
@@ -4,7 +4,7 @@ var common = require('../common');
if (process.platform === 'win32') {
console.log('1..0 # Skipped: no RLIMIT_NOFILE on Windows');
- process.exit(0);
+ return;
}
var exec = require('child_process').exec;
diff --git a/test/pummel/test-dh-regr.js b/test/pummel/test-dh-regr.js
index a6270bd241..1b4f0090e3 100644
--- a/test/pummel/test-dh-regr.js
+++ b/test/pummel/test-dh-regr.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var crypto = require('crypto');
diff --git a/test/pummel/test-dtrace-jsstack.js b/test/pummel/test-dtrace-jsstack.js
index e21de2153c..67194a3dd7 100644
--- a/test/pummel/test-dtrace-jsstack.js
+++ b/test/pummel/test-dtrace-jsstack.js
@@ -6,7 +6,7 @@ var util = require('util');
if (os.type() != 'SunOS') {
console.log('1..0 # Skipped: no DTRACE support');
- process.exit(0);
+ return;
}
/*
diff --git a/test/pummel/test-https-ci-reneg-attack.js b/test/pummel/test-https-ci-reneg-attack.js
index 77616b0e27..05622c896e 100644
--- a/test/pummel/test-https-ci-reneg-attack.js
+++ b/test/pummel/test-https-ci-reneg-attack.js
@@ -5,7 +5,7 @@ var spawn = require('child_process').spawn;
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
var https = require('https');
@@ -14,7 +14,7 @@ var fs = require('fs');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
// renegotiation limits to test
diff --git a/test/pummel/test-https-large-response.js b/test/pummel/test-https-large-response.js
index 1aa36464a1..4a15b29cd1 100644
--- a/test/pummel/test-https-large-response.js
+++ b/test/pummel/test-https-large-response.js
@@ -6,7 +6,7 @@ var fs = require('fs');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/pummel/test-https-no-reader.js b/test/pummel/test-https-no-reader.js
index 8f407e2d7d..753687e67a 100644
--- a/test/pummel/test-https-no-reader.js
+++ b/test/pummel/test-https-no-reader.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/pummel/test-keep-alive.js b/test/pummel/test-keep-alive.js
index 24d3658820..4d3fbe0731 100644
--- a/test/pummel/test-keep-alive.js
+++ b/test/pummel/test-keep-alive.js
@@ -1,7 +1,7 @@
'use strict';
if (process.platform === 'win32') {
console.log('1..0 # Skipped: no `wrk` on windows');
- process.exit(0);
+ return;
}
// This test requires the program 'wrk'
diff --git a/test/pummel/test-regress-GH-892.js b/test/pummel/test-regress-GH-892.js
index d84170d764..67f9dd95ae 100644
--- a/test/pummel/test-regress-GH-892.js
+++ b/test/pummel/test-regress-GH-892.js
@@ -11,7 +11,7 @@ var spawn = require('child_process').spawn;
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/pummel/test-tls-ci-reneg-attack.js b/test/pummel/test-tls-ci-reneg-attack.js
index a3c9ba921c..3fad5e6a4e 100644
--- a/test/pummel/test-tls-ci-reneg-attack.js
+++ b/test/pummel/test-tls-ci-reneg-attack.js
@@ -5,7 +5,7 @@ var spawn = require('child_process').spawn;
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
@@ -13,7 +13,7 @@ var fs = require('fs');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
// renegotiation limits to test
diff --git a/test/pummel/test-tls-connect-memleak.js b/test/pummel/test-tls-connect-memleak.js
index 0345f9a6f6..b8ddc78fab 100644
--- a/test/pummel/test-tls-connect-memleak.js
+++ b/test/pummel/test-tls-connect-memleak.js
@@ -6,7 +6,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/pummel/test-tls-securepair-client.js b/test/pummel/test-tls-securepair-client.js
index 6d36ae4a36..aaf8e628d6 100644
--- a/test/pummel/test-tls-securepair-client.js
+++ b/test/pummel/test-tls-securepair-client.js
@@ -5,12 +5,12 @@ var common = require('../common');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var join = require('path').join;
diff --git a/test/pummel/test-tls-server-large-request.js b/test/pummel/test-tls-server-large-request.js
index e6ef89c72e..d7663e936d 100644
--- a/test/pummel/test-tls-server-large-request.js
+++ b/test/pummel/test-tls-server-large-request.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
diff --git a/test/pummel/test-tls-session-timeout.js b/test/pummel/test-tls-session-timeout.js
index 0e8abf7bcb..64548e2043 100644
--- a/test/pummel/test-tls-session-timeout.js
+++ b/test/pummel/test-tls-session-timeout.js
@@ -3,12 +3,12 @@ var common = require('../common');
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
doTest();
diff --git a/test/pummel/test-tls-throttle.js b/test/pummel/test-tls-throttle.js
index 3eb1af6da7..67efb61b7e 100644
--- a/test/pummel/test-tls-throttle.js
+++ b/test/pummel/test-tls-throttle.js
@@ -7,7 +7,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');
var fs = require('fs');
diff --git a/test/sequential/test-regress-GH-1531.js b/test/sequential/test-regress-GH-1531.js
index 0d06cc3485..097611e1bf 100644
--- a/test/sequential/test-regress-GH-1531.js
+++ b/test/sequential/test-regress-GH-1531.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var https = require('https');
diff --git a/test/sequential/test-setproctitle.js b/test/sequential/test-setproctitle.js
index 1c20dc5dd1..11395f4fdb 100644
--- a/test/sequential/test-setproctitle.js
+++ b/test/sequential/test-setproctitle.js
@@ -4,7 +4,7 @@
// FIXME add sunos support
if ('linux freebsd darwin'.indexOf(process.platform) === -1) {
console.log(`1..0 # Skipped: Unsupported platform [${process.platform}]`);
- process.exit();
+ return;
}
var common = require('../common');
diff --git a/test/sequential/test-tls-honorcipherorder.js b/test/sequential/test-tls-honorcipherorder.js
index 7e93ac5a05..cac697c5b0 100644
--- a/test/sequential/test-tls-honorcipherorder.js
+++ b/test/sequential/test-tls-honorcipherorder.js
@@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');