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 b51367aa4229a3..6bb83efe5c6360 100644 --- a/test/parallel/test-cluster-bind-privileged-port.js +++ b/test/parallel/test-cluster-bind-privileged-port.js @@ -5,8 +5,8 @@ var cluster = require('cluster'); var net = require('net'); if (process.platform === 'win32') { - console.log('Skipping test, not reliable on Windows.'); - process.exit(0); + console.log('1..0 # Skipped: not reliable on Windows.'); + 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 f90152cf68f1a7..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('skipping test on windows, where clustered dgram is ENOTSUP'); - process.exit(0); + console.log('1..0 # Skipped: on windows, because clustered dgram is ENOTSUP'); + 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 4fc4b078ad6409..188f6fb2081f28 100644 --- a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js +++ b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js @@ -5,13 +5,13 @@ var cluster = require('cluster'); var net = require('net'); if (process.platform === 'win32') { - console.log('Skipping test, not reliable on Windows.'); - process.exit(0); + console.log('1..0 # Skipped: not reliable on Windows'); + return; } if (process.getuid() === 0) { - console.log('Do not run this test as root.'); - process.exit(0); + console.log('1..0 # Skipped: as this test should not be run as `root`'); + return; } if (cluster.isMaster) { diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js index 75d733ff98b9b1..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'); @@ -56,7 +56,7 @@ for (var i in TEST_CASES) { var test = TEST_CASES[i]; if (ciphers.indexOf(test.algo) == -1) { - console.log('skipping unsupported ' + test.algo + ' test'); + console.log('1..0 # Skipped: unsupported ' + test.algo + ' test'); continue; } 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 03e8afb99132aa..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() { @@ -16,7 +16,7 @@ dgram.createSocket('udp4').bind(common.PORT + 0, common.mustCall(function() { })); if (!common.hasIPv6) { - console.error('Skipping udp6 part of test, no IPv6 support'); + console.log('1..0 # Skipped: udp6 part of test, because no IPv6 support'); return; } diff --git a/test/parallel/test-dgram-empty-packet.js b/test/parallel/test-dgram-empty-packet.js index 797012b8839fb7..ba6faa62d86cec 100644 --- a/test/parallel/test-dgram-empty-packet.js +++ b/test/parallel/test-dgram-empty-packet.js @@ -9,7 +9,7 @@ var client; var timer; if (process.platform === 'darwin') { - console.error('Test is disabled due to 17894467 Apple bug'); + console.log('1..0 # Skipped: because of 17894467 Apple bug'); return; } diff --git a/test/parallel/test-dgram-send-empty-buffer.js b/test/parallel/test-dgram-send-empty-buffer.js index ab66e0545e611d..11f3d38d2ed046 100644 --- a/test/parallel/test-dgram-send-empty-buffer.js +++ b/test/parallel/test-dgram-send-empty-buffer.js @@ -8,7 +8,7 @@ var callbacks = 0; var client, timer, buf; if (process.platform === 'darwin') { - console.error('Test is disabled due to 17894467 Apple bug'); + console.log('1..0 # Skipped: because of 17894467 Apple bug'); return; } diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index 6d86ba1a7ec0f1..c198d7d0ebc638 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -7,8 +7,8 @@ var path = require('path'); // `fs.readFile('/')` does not fail on FreeBSD, because you can open and read // the directory there. if (process.platform === 'freebsd') { - console.error('Skipping test, platform not supported.'); - process.exit(); + console.log('1..0 # Skipped: platform not supported.'); + 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 690da928e72535..66f955a5614378 100644 --- a/test/parallel/test-fs-readfile-pipe-large.js +++ b/test/parallel/test-fs-readfile-pipe-large.js @@ -6,8 +6,8 @@ var path = require('path'); // simulate `cat readfile.js | node readfile.js` if (process.platform === 'win32') { - console.error('No /dev/stdin on windows. Skipping test.'); - process.exit(); + console.log('1..0 # Skipped: No /dev/stdin on windows.'); + return; } var fs = require('fs'); diff --git a/test/parallel/test-fs-readfile-pipe.js b/test/parallel/test-fs-readfile-pipe.js index 80cbaeac7cc43b..2ac547e5c72122 100644 --- a/test/parallel/test-fs-readfile-pipe.js +++ b/test/parallel/test-fs-readfile-pipe.js @@ -5,8 +5,8 @@ var assert = require('assert'); // simulate `cat readfile.js | node readfile.js` if (process.platform === 'win32') { - console.error('No /dev/stdin on windows. Skipping test.'); - process.exit(); + console.log('1..0 # Skipped: No /dev/stdin on windows.'); + 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 991c8589dedcfb..e9045b27f1789d 100644 --- a/test/parallel/test-fs-readfilesync-pipe-large.js +++ b/test/parallel/test-fs-readfilesync-pipe-large.js @@ -6,8 +6,8 @@ var path = require('path'); // simulate `cat readfile.js | node readfile.js` if (process.platform === 'win32') { - console.error('No /dev/stdin on windows. Skipping test.'); - process.exit(); + console.log('1..0 # Skipped: No /dev/stdin on windows.'); + return; } var fs = require('fs'); diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index 718ec2f7aac3d9..a87ef2428dc479 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -80,7 +80,7 @@ function test_simple_error_callback(cb) { function test_simple_relative_symlink(callback) { console.log('test_simple_relative_symlink'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var entry = common.tmpDir + '/symlink', @@ -143,7 +143,7 @@ function test_simple_absolute_symlink(callback) { function test_deep_relative_file_symlink(callback) { console.log('test_deep_relative_file_symlink'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } @@ -175,7 +175,7 @@ function test_deep_relative_file_symlink(callback) { function test_deep_relative_dir_symlink(callback) { console.log('test_deep_relative_dir_symlink'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var expected = path.join(common.fixturesDir, 'cycles', 'folder'); @@ -207,7 +207,7 @@ function test_deep_relative_dir_symlink(callback) { function test_cyclic_link_protection(callback) { console.log('test_cyclic_link_protection'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var entry = common.tmpDir + '/cycles/realpath-3a'; @@ -230,7 +230,7 @@ function test_cyclic_link_protection(callback) { function test_cyclic_link_overprotection(callback) { console.log('test_cyclic_link_overprotection'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var cycles = common.tmpDir + '/cycles'; @@ -251,7 +251,7 @@ function test_cyclic_link_overprotection(callback) { function test_relative_input_cwd(callback) { console.log('test_relative_input_cwd'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } @@ -295,7 +295,7 @@ function test_deep_symlink_mix(callback) { if (isWindows) { // This one is a mix of files and directories, and it's quite tricky // to get the file/dir links sorted out correctly. - console.log('skipping symlink test (no way to work on windows)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } @@ -391,7 +391,7 @@ assert.equal(upone, uponeActual, function test_up_multiple(cb) { console.error('test_up_multiple'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } function cleanup() { diff --git a/test/parallel/test-http-curl-chunk-problem.js b/test/parallel/test-http-curl-chunk-problem.js index 24f85e875afdfa..f3e3a243287ce1 100644 --- a/test/parallel/test-http-curl-chunk-problem.js +++ b/test/parallel/test-http-curl-chunk-problem.js @@ -2,8 +2,8 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + return; } // http://groups.google.com/group/nodejs/browse_thread/thread/f66cd3c960406919 diff --git a/test/parallel/test-http-full-response.js b/test/parallel/test-http-full-response.js index da1b6d7f223496..17240c9addb895 100644 --- a/test/parallel/test-http-full-response.js +++ b/test/parallel/test-http-full-response.js @@ -27,7 +27,7 @@ function runAb(opts, callback) { exec(command, function(err, stdout, stderr) { if (err) { if (/ab|apr/mi.test(stderr)) { - console.log('problem spawning ab - skipping test.\n' + stderr); + console.log('1..0 # Skipped: problem spawning `ab`.\n' + stderr); process.reallyExit(0); } process.exit(); diff --git a/test/parallel/test-http-localaddress.js b/test/parallel/test-http-localaddress.js index 9cc6a80d0b4974..ac5de820263787 100644 --- a/test/parallel/test-http-localaddress.js +++ b/test/parallel/test-http-localaddress.js @@ -4,8 +4,8 @@ var http = require('http'), assert = require('assert'); if (!common.hasMultiLocalhost()) { - console.log('Skipping platform-specific test.'); - process.exit(); + console.log('1..0 # Skipped: platform-specific test.'); + 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 f9b382ad830d35..7a3ceb9404f37e 100644 --- a/test/parallel/test-https-foafssl.js +++ b/test/parallel/test-https-foafssl.js @@ -2,8 +2,8 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 0f3241c70b46ec..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('Skipping platform-specific test.'); - process.exit(); + console.log('1..0 # Skipped: platform-specific test.'); + 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-intl.js b/test/parallel/test-intl.js index 8701d90f7c0acc..7288febf9e6bfd 100644 --- a/test/parallel/test-intl.js +++ b/test/parallel/test-intl.js @@ -24,7 +24,7 @@ if (!haveIntl) { '"Intl" object is NOT present but v8_enable_i18n_support is ' + enablei18n; assert.equal(enablei18n, false, erMsg); - console.log('Skipping Intl tests because Intl object not present.'); + console.log('1..0 # Skipped: Intl tests because Intl object not present.'); } else { var erMsg = @@ -46,8 +46,8 @@ if (!haveIntl) { // If list is specified and doesn't contain 'en' then return. if (process.config.variables.icu_locales && !haveLocale('en')) { - console.log('Skipping detailed Intl tests because English is not listed ' + - 'as supported.'); + console.log('1..0 # Skipped: detailed Intl tests because English is not ' + + 'listed as supported.'); // Smoke test. Does it format anything, or fail? console.log('Date(0) formatted to: ' + dtf.format(date0)); return; diff --git a/test/parallel/test-listen-fd-cluster.js b/test/parallel/test-listen-fd-cluster.js index c3ba42f315daba..b10edd33e0064a 100644 --- a/test/parallel/test-listen-fd-cluster.js +++ b/test/parallel/test-listen-fd-cluster.js @@ -10,7 +10,7 @@ var cluster = require('cluster'); console.error('Cluster listen fd test', process.argv.slice(2)); if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-listen-fd-detached-inherit.js b/test/parallel/test-listen-fd-detached-inherit.js index 7e8f7fbaf8a018..3660766293dbdc 100644 --- a/test/parallel/test-listen-fd-detached-inherit.js +++ b/test/parallel/test-listen-fd-detached-inherit.js @@ -7,7 +7,7 @@ var PORT = common.PORT; var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-listen-fd-detached.js b/test/parallel/test-listen-fd-detached.js index fceedfd25251dc..b7af1a6a4935ef 100644 --- a/test/parallel/test-listen-fd-detached.js +++ b/test/parallel/test-listen-fd-detached.js @@ -7,7 +7,7 @@ var PORT = common.PORT; var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-listen-fd-server.js b/test/parallel/test-listen-fd-server.js index b922c25ee10683..8451a79c9e3716 100644 --- a/test/parallel/test-listen-fd-server.js +++ b/test/parallel/test-listen-fd-server.js @@ -7,7 +7,7 @@ var PORT = common.PORT; var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-module-loading-error.js b/test/parallel/test-module-loading-error.js index f33605d44ee949..f430b65d8cf0a5 100644 --- a/test/parallel/test-module-loading-error.js +++ b/test/parallel/test-module-loading-error.js @@ -13,8 +13,8 @@ var error_desc = { var dlerror_msg = error_desc[process.platform]; if (!dlerror_msg) { - console.error('Skipping test, platform not supported.'); - process.exit(); + console.log('1..0 # Skipped: platform not supported.'); + return; } try { diff --git a/test/parallel/test-net-connect-options-ipv6.js b/test/parallel/test-net-connect-options-ipv6.js index 0ac1367ede1cce..f0f7bc65b3c7eb 100644 --- a/test/parallel/test-net-connect-options-ipv6.js +++ b/test/parallel/test-net-connect-options-ipv6.js @@ -5,7 +5,7 @@ var net = require('net'); var dns = require('dns'); if (!common.hasIPv6) { - console.error('Skipping test, no IPv6 support'); + console.log('1..0 # Skipped: no IPv6 support'); return; } diff --git a/test/parallel/test-process-getgroups.js b/test/parallel/test-process-getgroups.js index 1cb5f38c1db203..b18b5a0f2f90d4 100644 --- a/test/parallel/test-process-getgroups.js +++ b/test/parallel/test-process-getgroups.js @@ -4,7 +4,7 @@ var assert = require('assert'); var exec = require('child_process').exec; if (process.platform === 'darwin') { - console.log('Skipping. Output of `id -G` is unreliable on Darwin.'); + console.log('1..0 # Skipped: Output of `id -G` is unreliable on Darwin.'); return; } diff --git a/test/parallel/test-stdio-closed.js b/test/parallel/test-stdio-closed.js index 2101f85ac061c3..afa8de96325fd0 100644 --- a/test/parallel/test-stdio-closed.js +++ b/test/parallel/test-stdio-closed.js @@ -4,7 +4,7 @@ var assert = require('assert'); var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.log('Skipping test, platform not supported.'); + console.log('1..0 # Skipped: platform not supported.'); return; } 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 ed8999b6b7a409..5e63384b0026f1 100644 --- a/test/parallel/test-tls-alert-handling.js +++ b/test/parallel/test-tls-alert-handling.js @@ -3,13 +3,13 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 97087d0b3b4c03..10b43312507ff5 100644 --- a/test/parallel/test-tls-alert.js +++ b/test/parallel/test-tls-alert.js @@ -3,13 +3,13 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 4e1975a1e00a25..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'); @@ -12,8 +12,8 @@ var fs = require('fs'); var spawn = require('child_process').spawn; if (common.opensslCli === false) { - console.error('Skipping because openssl command cannot be executed'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 6e877b7ddef19f..bdccaaf17e7b20 100644 --- a/test/parallel/test-tls-npn-server-client.js +++ b/test/parallel/test-tls-npn-server-client.js @@ -1,7 +1,7 @@ 'use strict'; if (!process.features.tls_npn) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } @@ -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 73f1c5772a59fb..2dbfc6c164b785 100644 --- a/test/parallel/test-tls-ocsp-callback.js +++ b/test/parallel/test-tls-ocsp-callback.js @@ -2,18 +2,18 @@ var common = require('../common'); if (!process.features.tls_ocsp) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 387ede8abc3554..cbdf376c7fb5a3 100644 --- a/test/parallel/test-tls-server-verify.js +++ b/test/parallel/test-tls-server-verify.js @@ -2,8 +2,8 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 9b3da2717096be..d38fed6a99106e 100644 --- a/test/parallel/test-tls-session-cache.js +++ b/test/parallel/test-tls-session-cache.js @@ -2,13 +2,13 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 f5284c1b58b4ac..666ef1fa80796b 100644 --- a/test/parallel/test-tls-set-ciphers.js +++ b/test/parallel/test-tls-set-ciphers.js @@ -2,13 +2,13 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 68ef2caa9819d3..92c5aadfcbc28e 100644 --- a/test/parallel/test-tls-sni-option.js +++ b/test/parallel/test-tls-sni-option.js @@ -1,7 +1,7 @@ 'use strict'; if (!process.features.tls_sni) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } @@ -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 dec829face184e..5a1894cd6e8cc9 100644 --- a/test/parallel/test-tls-sni-server-client.js +++ b/test/parallel/test-tls-sni-server-client.js @@ -1,7 +1,7 @@ 'use strict'; if (!process.features.tls_sni) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } @@ -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 370c959ea297a6..dbe7b6890fd218 100644 --- a/test/parallel/test-tty-wrap.js +++ b/test/parallel/test-tty-wrap.js @@ -6,8 +6,8 @@ var TTY = process.binding('tty_wrap').TTY; var isTTY = process.binding('tty_wrap').isTTY; if (isTTY(1) == false) { - console.error('fd 1 is not a tty. skipping test.'); - process.exit(0); + console.log('1..0 # Skipped: fd 1 is not a tty.'); + 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 9f012c9dfb14b8..0d31267a6455dd 100644 --- a/test/pummel/test-abort-fatal-error.js +++ b/test/pummel/test-abort-fatal-error.js @@ -3,8 +3,8 @@ var assert = require('assert'); var common = require('../common'); if (process.platform === 'win32') { - console.log('skipping test on windows'); - process.exit(0); + console.log('1..0 # Skipped: no RLIMIT_NOFILE on Windows'); + 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 831402fc87c780..67194a3dd77f53 100644 --- a/test/pummel/test-dtrace-jsstack.js +++ b/test/pummel/test-dtrace-jsstack.js @@ -5,8 +5,8 @@ var os = require('os'); var util = require('util'); if (os.type() != 'SunOS') { - console.error('Skipping because DTrace not available.'); - process.exit(0); + console.log('1..0 # Skipped: no DTRACE support'); + return; } /* diff --git a/test/pummel/test-https-ci-reneg-attack.js b/test/pummel/test-https-ci-reneg-attack.js index fa38bea0011131..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'); @@ -13,8 +13,8 @@ var https = require('https'); var fs = require('fs'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 d03cb1d74f3683..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('skipping this test because there is no wrk on windows'); - process.exit(0); + console.log('1..0 # Skipped: no `wrk` on windows'); + 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 49b9a87a7dbdc3..3fad5e6a4e7aac 100644 --- a/test/pummel/test-tls-ci-reneg-attack.js +++ b/test/pummel/test-tls-ci-reneg-attack.js @@ -5,15 +5,15 @@ var spawn = require('child_process').spawn; if (!common.hasCrypto) { console.log('1..0 # Skipped: missing crypto'); - process.exit(); + return; } var tls = require('tls'); var fs = require('fs'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 7542ce62bcd154..aaf8e628d6a2bc 100644 --- a/test/pummel/test-tls-securepair-client.js +++ b/test/pummel/test-tls-securepair-client.js @@ -4,13 +4,13 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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 962b1206b6c956..64548e204342e6 100644 --- a/test/pummel/test-tls-session-timeout.js +++ b/test/pummel/test-tls-session-timeout.js @@ -2,13 +2,13 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); - process.exit(0); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + 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-child-process-emfile.js b/test/sequential/test-child-process-emfile.js index 964b63a2b4513d..ad67411e9e52e5 100644 --- a/test/sequential/test-child-process-emfile.js +++ b/test/sequential/test-child-process-emfile.js @@ -5,7 +5,7 @@ var spawn = require('child_process').spawn; var fs = require('fs'); if (process.platform === 'win32') { - console.log('Skipping test, no RLIMIT_NOFILE on Windows.'); + console.log('1..0 # Skipped: no RLIMIT_NOFILE on Windows'); return; } diff --git a/test/sequential/test-net-server-address.js b/test/sequential/test-net-server-address.js index 1e91c348ef02ca..8c57cb742e2d02 100644 --- a/test/sequential/test-net-server-address.js +++ b/test/sequential/test-net-server-address.js @@ -37,7 +37,7 @@ server_ipv6.listen(common.PORT, localhost_ipv6, function() { }); if (!common.hasIPv6) { - console.error('Skipping ipv6 part of test, no IPv6 support'); + console.log('1..0 # Skipped: ipv6 part of test, no IPv6 support'); return; } 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 61b3e470cded9e..11395f4fdbc52f 100644 --- a/test/sequential/test-setproctitle.js +++ b/test/sequential/test-setproctitle.js @@ -3,8 +3,8 @@ // FIXME add sunos support if ('linux freebsd darwin'.indexOf(process.platform) === -1) { - console.error('Skipping test, platform not supported.'); - process.exit(); + console.log(`1..0 # Skipped: Unsupported platform [${process.platform}]`); + 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');