From 79c865a53feef1828d8c93e953acbeb01ee2cb74 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Tue, 7 Jul 2015 20:55:55 +0530 Subject: [PATCH] test: changing process.exit to return while skipping tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Johan Bergström --- test/internet/test-http-https-default-ports.js | 2 +- test/internet/test-tls-connnect-cnnic.js | 2 +- test/internet/test-tls-connnect-melissadata.js | 2 +- test/internet/test-tls-reuse-host-from-socket.js | 2 +- test/parallel/test-cluster-bind-privileged-port.js | 2 +- test/parallel/test-cluster-disconnect-unshared-udp.js | 2 +- .../test-cluster-shared-handle-bind-privileged-port.js | 4 ++-- test/parallel/test-crypto-authenticated.js | 2 +- test/parallel/test-crypto-binary-default.js | 2 +- test/parallel/test-crypto-certificate.js | 2 +- test/parallel/test-crypto-cipher-decipher.js | 2 +- test/parallel/test-crypto-dh-odd-key.js | 2 +- test/parallel/test-crypto-dh.js | 2 +- test/parallel/test-crypto-domain.js | 2 +- test/parallel/test-crypto-domains.js | 2 +- test/parallel/test-crypto-ecb.js | 2 +- test/parallel/test-crypto-from-binary.js | 2 +- test/parallel/test-crypto-hash-stream-pipe.js | 2 +- test/parallel/test-crypto-hash.js | 2 +- test/parallel/test-crypto-hmac.js | 2 +- test/parallel/test-crypto-padding-aes256.js | 2 +- test/parallel/test-crypto-padding.js | 2 +- test/parallel/test-crypto-pbkdf2.js | 2 +- test/parallel/test-crypto-random.js | 2 +- test/parallel/test-crypto-rsa-dsa.js | 2 +- test/parallel/test-crypto-sign-verify.js | 2 +- test/parallel/test-crypto-stream.js | 2 +- test/parallel/test-crypto-verify-failure.js | 2 +- test/parallel/test-crypto.js | 2 +- test/parallel/test-dgram-bind-default-address.js | 2 +- test/parallel/test-fs-readfile-error.js | 2 +- test/parallel/test-fs-readfile-pipe-large.js | 2 +- test/parallel/test-fs-readfile-pipe.js | 2 +- test/parallel/test-fs-readfilesync-pipe-large.js | 2 +- test/parallel/test-http-curl-chunk-problem.js | 2 +- test/parallel/test-http-localaddress.js | 2 +- test/parallel/test-http-url.parse-https.request.js | 2 +- test/parallel/test-https-agent-servername.js | 2 +- test/parallel/test-https-agent.js | 2 +- test/parallel/test-https-byteswritten.js | 2 +- test/parallel/test-https-client-checkServerIdentity.js | 2 +- test/parallel/test-https-client-get-url.js | 2 +- test/parallel/test-https-client-reject.js | 2 +- test/parallel/test-https-client-resume.js | 2 +- test/parallel/test-https-connecting-to-http.js | 2 +- test/parallel/test-https-drain.js | 2 +- test/parallel/test-https-eof-for-eom.js | 2 +- test/parallel/test-https-foafssl.js | 4 ++-- test/parallel/test-https-host-headers.js | 2 +- test/parallel/test-https-localaddress-bind-error.js | 2 +- test/parallel/test-https-localaddress.js | 4 ++-- test/parallel/test-https-pfx.js | 2 +- test/parallel/test-https-req-split.js | 2 +- test/parallel/test-https-set-timeout-server.js | 2 +- test/parallel/test-https-simple.js | 2 +- test/parallel/test-https-socket-options.js | 2 +- test/parallel/test-https-strict.js | 2 +- test/parallel/test-https-timeout-server-2.js | 2 +- test/parallel/test-https-timeout-server.js | 2 +- test/parallel/test-https-timeout.js | 2 +- test/parallel/test-https-truncate.js | 2 +- test/parallel/test-module-loading-error.js | 2 +- test/parallel/test-stream2-unpipe-drain.js | 2 +- test/parallel/test-tls-0-dns-altname.js | 2 +- test/parallel/test-tls-alert-handling.js | 4 ++-- test/parallel/test-tls-alert.js | 4 ++-- test/parallel/test-tls-async-cb-after-socket-end.js | 2 +- test/parallel/test-tls-cert-regression.js | 2 +- test/parallel/test-tls-check-server-identity.js | 2 +- test/parallel/test-tls-client-abort.js | 2 +- test/parallel/test-tls-client-abort2.js | 2 +- test/parallel/test-tls-client-default-ciphers.js | 2 +- test/parallel/test-tls-client-destroy-soon.js | 2 +- test/parallel/test-tls-client-reject.js | 2 +- test/parallel/test-tls-client-resume.js | 2 +- test/parallel/test-tls-client-verify.js | 2 +- test/parallel/test-tls-close-error.js | 2 +- test/parallel/test-tls-close-notify.js | 2 +- test/parallel/test-tls-cnnic-whitelist.js | 2 +- test/parallel/test-tls-connect-given-socket.js | 2 +- test/parallel/test-tls-connect-no-host.js | 2 +- test/parallel/test-tls-connect-pipe.js | 2 +- test/parallel/test-tls-connect-simple.js | 2 +- test/parallel/test-tls-connect.js | 2 +- test/parallel/test-tls-delayed-attach-error.js | 2 +- test/parallel/test-tls-delayed-attach.js | 2 +- test/parallel/test-tls-destroy-whilst-write.js | 2 +- test/parallel/test-tls-dhe.js | 2 +- test/parallel/test-tls-ecdh-disable.js | 2 +- test/parallel/test-tls-ecdh.js | 2 +- test/parallel/test-tls-econnreset.js | 2 +- test/parallel/test-tls-fast-writing.js | 2 +- test/parallel/test-tls-friendly-error-message.js | 2 +- test/parallel/test-tls-getcipher.js | 2 +- test/parallel/test-tls-handshake-error.js | 2 +- test/parallel/test-tls-handshake-nohang.js | 2 +- test/parallel/test-tls-hello-parser-failure.js | 2 +- test/parallel/test-tls-inception.js | 2 +- test/parallel/test-tls-interleave.js | 2 +- test/parallel/test-tls-invoke-queued.js | 2 +- test/parallel/test-tls-js-stream.js | 2 +- test/parallel/test-tls-junk-closes-server.js | 2 +- test/parallel/test-tls-key-mismatch.js | 2 +- test/parallel/test-tls-max-send-fragment.js | 2 +- test/parallel/test-tls-multi-key.js | 2 +- test/parallel/test-tls-no-cert-required.js | 2 +- test/parallel/test-tls-no-rsa-key.js | 2 +- test/parallel/test-tls-no-sslv23.js | 2 +- test/parallel/test-tls-no-sslv3.js | 4 ++-- test/parallel/test-tls-npn-server-client.js | 2 +- test/parallel/test-tls-ocsp-callback.js | 4 ++-- test/parallel/test-tls-on-empty-socket.js | 2 +- test/parallel/test-tls-over-http-tunnel.js | 2 +- test/parallel/test-tls-passphrase.js | 2 +- test/parallel/test-tls-pause.js | 2 +- test/parallel/test-tls-peer-certificate-encoding.js | 2 +- test/parallel/test-tls-peer-certificate-multi-keys.js | 2 +- test/parallel/test-tls-peer-certificate.js | 2 +- test/parallel/test-tls-request-timeout.js | 2 +- test/parallel/test-tls-securepair-server.js | 2 +- test/parallel/test-tls-server-verify.js | 4 ++-- test/parallel/test-tls-session-cache.js | 4 ++-- test/parallel/test-tls-set-ciphers.js | 4 ++-- test/parallel/test-tls-set-encoding.js | 2 +- test/parallel/test-tls-sni-option.js | 2 +- test/parallel/test-tls-sni-server-client.js | 2 +- test/parallel/test-tls-ticket-cluster.js | 2 +- test/parallel/test-tls-ticket.js | 2 +- test/parallel/test-tls-timeout-server-2.js | 2 +- test/parallel/test-tls-timeout-server.js | 2 +- test/parallel/test-tls-wrap-timeout.js | 2 +- test/parallel/test-tls-zero-clear-in.js | 2 +- test/parallel/test-tty-wrap.js | 2 +- test/parallel/test-zlib-random-byte-pipes.js | 2 +- test/pummel/test-abort-fatal-error.js | 2 +- test/pummel/test-dh-regr.js | 2 +- test/pummel/test-dtrace-jsstack.js | 2 +- test/pummel/test-https-ci-reneg-attack.js | 4 ++-- test/pummel/test-https-large-response.js | 2 +- test/pummel/test-https-no-reader.js | 2 +- test/pummel/test-keep-alive.js | 2 +- test/pummel/test-regress-GH-892.js | 2 +- test/pummel/test-tls-ci-reneg-attack.js | 4 ++-- test/pummel/test-tls-connect-memleak.js | 2 +- test/pummel/test-tls-securepair-client.js | 4 ++-- test/pummel/test-tls-server-large-request.js | 2 +- test/pummel/test-tls-session-timeout.js | 4 ++-- test/pummel/test-tls-throttle.js | 2 +- test/sequential/test-regress-GH-1531.js | 2 +- test/sequential/test-setproctitle.js | 2 +- test/sequential/test-tls-honorcipherorder.js | 2 +- 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 1133221e6b7d44..dbc50c650332e1 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 d95685a3f70c48..01e15340c99dfb 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 326e76cb240899..36795f3553050c 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 f3864908155f0e..2ba6b5c816cb2f 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 f08accc73a89c4..6bb83efe5c6360 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 5b84e4c83d4a44..0d3eb2a5ad7b26 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 82417c25b9b4f9..188f6fb2081f28 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 9e3ea8ccf132c0..2cc36278332c9b 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 8623ff477429da..bebc91dc8ed0b1 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 ab0d4ca9dff0b3..8286d58d1e44ca 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 931cf339bbb612..f33ea5482c8c3a 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 1c7f4f69bb4b50..abb4860b238a78 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 4978ab2ebbcb1f..dfb912c0a4c9f1 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 fe5e72982d53af..349ce7e1fc9e9d 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 55c67b490dbae0..ca93d20fdf25b3 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 f1541ddeb403dc..920b18a47f8ff1 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 4c8d7338dd9770..78e3b456779c9b 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 23feccea3843ae..c41f91241d58ea 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 5c542406cb7112..95bb1bc7d8643d 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 e234bd91606906..692954caabd4a3 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 db75a07c9e1617..550aa5c061f7ef 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 11b1729fde88cb..d4cb7190e2060a 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 88be15b68cb348..885831bad162e0 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 cac0c9b86cf2c1..3454796a6b19f5 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 127bbfb26df5dd..ebbc15c2d42500 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 fb811e7f12d0fc..e4cb9fc41ccf91 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 fd970e061b00e1..727e6a16a70e46 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 a4a9ec698197c0..f315aed1a9f139 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 47f0430f167610..55b57e65154700 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 ad42f43829d131..75069e3618623a 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 f782aa585fdede..c198d7d0ebc638 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 a229d8fba7aa1c..66f955a5614378 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 2874b0ec04a8a1..2ac547e5c72122 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 d8a346e756ef53..e9045b27f1789d 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 0e952f1d7e6f73..f3e3a243287ce1 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 5d95a998f6e7a7..ac5de820263787 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 7fb749b069d140..10c40ec0310708 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 5af9af9818008c..2be40836a04ea2 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 a26882844e3e59..a3bb28975a3155 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 3e50b6f84dc265..5163eccc262ffa 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 8f4aad7f5eff1e..e49427dcc76f6e 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 66c11cd2db34db..e8922de9434a03 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 55c335289d4131..fc76e5b80f5806 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 024c5fa17f6038..8f849b14b5818a 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 64adb7760321bf..755abf9427fb32 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 0ce55b0849b585..43113ef980b47a 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 78a2f3828cb9dd..0445625bace642 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 5ada00c92453f0..7a3ceb9404f37e 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 6a828d4aabbe07..0ea32f320e736b 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 21e630dee43404..b3cb4ffe6b077b 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 94a301f8b0ba7c..a330c4881a9e47 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 f3968588333b44..5e080b4e3ded12 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 4fd48eb16151fa..479fff36b4e5d2 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 c10878110c3e53..bfea7c4d5d5f48 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 c2b93fdef855a0..2401ad2586bc8a 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 52e46bd20b7807..44e179f27a800c 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 46d65ae39356c0..65ebfabde2bcdd 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 5da7c83326802a..9970688fe7c1e8 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 2707c30d181bf5..0db7ad533d9868 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 f6f1375180991c..7f34c18bec0897 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 3ac87ba3522fe1..e77bf29ed25454 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 346b04f6352dd1..f430b65d8cf0a5 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 a430e4a58d6514..daad70a282a44c 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 fd10206a126359..61458142bc0115 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 fc9d7cdce2b40e..5e63384b0026f1 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 aa42565a704bdb..10b43312507ff5 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 db9db87f59087c..87258cb32c5085 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 24bc4242749f6c..6e546600b68f6c 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 e40cbb0f9da137..e659f40aa90232 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 25e44716c1d700..934162c35a426f 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 b64482b58dc03c..194882e7d52e08 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 5da57173315a09..e38671fd6f9de1 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 6a1a899103d9e9..554ac686dbdfbe 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 9e09493c6a464d..f2b93393e7d32d 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 8b36224a7f2a37..002151b7d82160 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 f206929f59560c..b4014ab351db2b 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 556fb1df12cbc7..5c5a797c280a7d 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 cfb9aab0d9789f..5cc3021ab8dd7e 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 759ce3230fdd1b..2449a5d6e2056c 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 902b67aa515c02..2fd44d870103b6 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 6d04890d4dcca1..3f347f5e17b473 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 bded532720f98b..4d607a88830081 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 feaa7c887b1e30..f56b4baed72aaa 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 160d874bed3355..ce4317ac302738 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 e2dbc5815d201c..aec76d11b5628a 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 a5b312d1633831..2fbafd8ecb312a 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 8b865fab178365..f42ed1d4ea7702 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 92fff3f221b65f..7dab1faa4196a1 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 1ed4ea35738d5f..454e177ed74632 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 cd144d79e0e073..2ffa970f383756 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 f451df68470c53..6ef629a159a948 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 24e8bfc6886f16..009fa40b631ee5 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 b2f2de137da8fa..ee2c21f6b5c220 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 12e3b8f9c64ecf..62209c771cb48c 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 dbe91d0943c464..f33177455f8943 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 181d6408e05abc..ae07551ef98088 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 3ed82c536a9e7a..3378583af220f2 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 76e6fe077ffef9..df03cf934fcef6 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 e726e16998a908..fd93a05e593107 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 f9607e1f4fa928..f833108ea3f9e0 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 292bd4fd9123dd..1c5e749911b6be 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 01a83ef214e0b6..5ee4e025f5dc18 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 35da4687493a21..f7919c545aefb1 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 3e41cfa45c7d30..cc9413b81e78d6 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 76aa97d1ff3daf..4c9fb4285f6ddb 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 02bbb6b664a2cf..97863606cf2a96 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 fd64438ead7f4e..61e8a3b7ca3658 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 931bf5dba050b9..702019a0bc8575 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 4bdf1dfa588611..2671bbcad580d5 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 5d6022fd64857f..bdccaaf17e7b20 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 e61e49d2928143..2dbfc6c164b785 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 8d95a997200786..84c95a99db5f7d 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 cf7ab78685c364..cf3ad776f7c9de 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 ce68fce5f02b99..05015399553fc8 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 f9d68f1395420a..3dc3e53d47f336 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 533b9126cda573..771c8181c8c3b6 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 fde55af50be2bf..3cfd6420cdf507 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 8164154779f998..4fa1beb6ac644c 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 8915dee1f199c3..a9b1c78c91a0bf 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 7ddba939bacd30..80541620789a32 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 825fdfc95091b9..cbdf376c7fb5a3 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 d4a8bdf8d4b135..d38fed6a99106e 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 2569d4bfd0ba87..666ef1fa80796b 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 fa0d72b5ad4bd7..ec728dad0c88ec 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 733510a0c45a16..92c5aadfcbc28e 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 7bda717bb78680..5a1894cd6e8cc9 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 a9798df0597945..fc0f1d5e858d00 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 450f6b54a52809..6c3ad01fa1c287 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 f2dca0b9ab1f7e..29cce0f6af8eca 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 4a9265079bf136..ee932c9b1fca6d 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 af1d84317854d9..d9e260f99e70c4 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 6eeba92585603f..33db08a78567fb 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 815220865f332a..dbe7b6890fd218 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 0f34f7ac4f7690..4b28b3871800d1 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 fb3f0944d7477b..0d31267a6455dd 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 a6270bd2419cb0..1b4f0090e3847e 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 e21de2153cb936..67194a3dd77f53 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 77616b0e275110..05622c896e4005 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 1aa36464a158e4..4a15b29cd19467 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 8f407e2d7d48f8..753687e67a5589 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 24d3658820465e..4d3fbe0731c576 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 d84170d7648a10..67f9dd95aebe5f 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 a3c9ba921cbda4..3fad5e6a4e7aac 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 0345f9a6f62886..b8ddc78fab6e4e 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 6d36ae4a367f5f..aaf8e628d6a2bc 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 e6ef89c72eb659..d7663e936de78a 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 0e8abf7bcbcb12..64548e204342e6 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 3eb1af6da75818..67efb61b7e66aa 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 0d06cc3485218a..097611e1bfb11b 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 1c20dc5dd1a9e4..11395f4fdbc52f 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 7e93ac5a059150..cac697c5b02d91 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');