diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js index a5d937d521d..3f548112278 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js @@ -8,10 +8,9 @@ const assert = require('assert'); // v8::String::kMaxLength defined in v8.h const kStringMaxLength = process.binding('buffer').kStringMaxLength; -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js index dee30d9fef0..b106e3d25aa 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js @@ -4,10 +4,9 @@ const common = require('../../common'); const binding = require('./build/Release/binding'); const assert = require('assert'); -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js index f06052d3161..1df9d228d96 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js @@ -4,10 +4,9 @@ const common = require('../../common'); const binding = require('./build/Release/binding'); const assert = require('assert'); -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js index 9af82da07eb..de27859a06e 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js @@ -4,10 +4,9 @@ const common = require('../../common'); const binding = require('./build/Release/binding'); const assert = require('assert'); -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js index a1d54460a22..4dbcf0efd86 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js @@ -4,10 +4,9 @@ const common = require('../../common'); const binding = require('./build/Release/binding'); const assert = require('assert'); -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js index 546e2a1a134..0333bc850b5 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js @@ -4,10 +4,9 @@ const common = require('../../common'); const binding = require('./build/Release/binding'); const assert = require('assert'); -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js index 94f6602cda4..094dee89903 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js @@ -4,10 +4,9 @@ const common = require('../../common'); const binding = require('./build/Release/binding'); const assert = require('assert'); -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js index 41a14118cf5..ce4a488cca1 100644 --- a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js +++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js @@ -4,10 +4,9 @@ const common = require('../../common'); const binding = require('./build/Release/binding'); const assert = require('assert'); -const skipMessage = - '1..0 # Skipped: intensive toString tests due to memory confinements'; +const skipMessage = 'intensive toString tests due to memory confinements'; if (!common.enoughTestMem) { - console.log(skipMessage); + common.skip(skipMessage); return; } @@ -20,13 +19,13 @@ try { } catch (e) { // If the exception is not due to memory confinement then rethrow it. if (e.message !== 'Invalid array buffer length') throw (e); - console.log(skipMessage); + common.skip(skipMessage); return; } // Ensure we have enough memory available for future allocations to succeed. if (!binding.ensureAllocation(2 * kStringMaxLength)) { - console.log(skipMessage); + common.skip(skipMessage); return; } diff --git a/test/common.js b/test/common.js index d56bc15329a..801e356b749 100644 --- a/test/common.js +++ b/test/common.js @@ -459,6 +459,10 @@ exports.fail = function(msg) { assert.fail(null, null, msg); }; +exports.skip = function(msg) { + console.log(`1..0 # Skipped: ${msg}`); +}; + // Returns true if the exit code "exitCode" and/or signal name "signal" // represent the exit code and/or signal name of a node process that aborted, // false otherwise. diff --git a/test/disabled/tls_server.js b/test/disabled/tls_server.js index cc381a61c31..14e48f6b31a 100644 --- a/test/disabled/tls_server.js +++ b/test/disabled/tls_server.js @@ -13,7 +13,7 @@ var certPem = fs.readFileSync(common.fixturesDir + '/cert.pem'); try { var credentials = crypto.createCredentials({key: keyPem, cert: certPem}); } catch (e) { - console.log('1..0 # Skipped: node compiled without OpenSSL.'); + common.skip('node compiled without OpenSSL.'); return; } var i = 0; diff --git a/test/internet/test-dgram-broadcast-multi-process.js b/test/internet/test-dgram-broadcast-multi-process.js index 344f6506afd..60bf46b5dc0 100644 --- a/test/internet/test-dgram-broadcast-multi-process.js +++ b/test/internet/test-dgram-broadcast-multi-process.js @@ -16,7 +16,7 @@ const messages = [ ]; if (common.inFreeBSDJail) { - console.log('1..0 # Skipped: in a FreeBSD jail'); + common.skip('in a FreeBSD jail'); return; } diff --git a/test/internet/test-dgram-multicast-multi-process.js b/test/internet/test-dgram-multicast-multi-process.js index 69d7bbe3173..040b89e0b2c 100644 --- a/test/internet/test-dgram-multicast-multi-process.js +++ b/test/internet/test-dgram-multicast-multi-process.js @@ -17,7 +17,7 @@ const listeners = 3; // Skip test in FreeBSD jails. if (common.inFreeBSDJail) { - console.log('1..0 # Skipped: In a FreeBSD jail'); + common.skip('In a FreeBSD jail'); return; } diff --git a/test/internet/test-dns-ipv6.js b/test/internet/test-dns-ipv6.js index 38a5c3bf735..2929361f16e 100644 --- a/test/internet/test-dns-ipv6.js +++ b/test/internet/test-dns-ipv6.js @@ -11,7 +11,7 @@ let running = false; const queue = []; if (!common.hasIPv6) { - console.log('1..0 # Skipped: this test, no IPv6 support'); + common.skip('this test, no IPv6 support'); return; } diff --git a/test/internet/test-http-https-default-ports.js b/test/internet/test-http-https-default-ports.js index dbc50c65033..33d5436733f 100644 --- a/test/internet/test-http-https-default-ports.js +++ b/test/internet/test-http-https-default-ports.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/internet/test-tls-connnect-cnnic.js b/test/internet/test-tls-connnect-cnnic.js index 01e15340c99..038e23d2374 100644 --- a/test/internet/test-tls-connnect-cnnic.js +++ b/test/internet/test-tls-connnect-cnnic.js @@ -10,7 +10,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/internet/test-tls-connnect-melissadata.js b/test/internet/test-tls-connnect-melissadata.js index 36795f35530..7ab7f2aa7a7 100644 --- a/test/internet/test-tls-connnect-melissadata.js +++ b/test/internet/test-tls-connnect-melissadata.js @@ -4,7 +4,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/internet/test-tls-reuse-host-from-socket.js b/test/internet/test-tls-reuse-host-from-socket.js index 2ba6b5c816c..8c438f573c2 100644 --- a/test/internet/test-tls-reuse-host-from-socket.js +++ b/test/internet/test-tls-reuse-host-from-socket.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-buffer.js b/test/parallel/test-buffer.js index b62df2cf769..db2b0ae7a22 100644 --- a/test/parallel/test-buffer.js +++ b/test/parallel/test-buffer.js @@ -1273,7 +1273,7 @@ if (common.hasCrypto) { crypto.createHash('sha1').update(b2).digest('hex') ); } else { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); } // Test Compare diff --git a/test/parallel/test-child-process-fork-dgram.js b/test/parallel/test-child-process-fork-dgram.js index b4904c51b17..ce2535a0605 100644 --- a/test/parallel/test-child-process-fork-dgram.js +++ b/test/parallel/test-child-process-fork-dgram.js @@ -19,7 +19,7 @@ var assert = require('assert'); var common = require('../common'); if (common.isWindows) { - console.log('1..0 # Skipped: Sending dgram sockets to child processes is ' + + common.skip('Sending dgram sockets to child processes is ' + 'not supported'); return; } diff --git a/test/parallel/test-cluster-bind-privileged-port.js b/test/parallel/test-cluster-bind-privileged-port.js index 56449eaaf2e..9f4ef8ee5e8 100644 --- a/test/parallel/test-cluster-bind-privileged-port.js +++ b/test/parallel/test-cluster-bind-privileged-port.js @@ -5,12 +5,12 @@ var cluster = require('cluster'); var net = require('net'); if (common.isWindows) { - console.log('1..0 # Skipped: not reliable on Windows.'); + common.skip('not reliable on Windows.'); return; } if (process.getuid() === 0) { - console.log('1..0 # Skipped: Test is not supposed to be run as root.'); + common.skip('Test is not supposed to be run as root.'); return; } diff --git a/test/parallel/test-cluster-dgram-1.js b/test/parallel/test-cluster-dgram-1.js index 9404c55f2bb..b1164e3653a 100644 --- a/test/parallel/test-cluster-dgram-1.js +++ b/test/parallel/test-cluster-dgram-1.js @@ -9,7 +9,7 @@ var dgram = require('dgram'); if (common.isWindows) { - console.log('1..0 # Skipped: dgram clustering is currently not supported ' + + common.skip('dgram clustering is currently not supported ' + 'on windows.'); return; } diff --git a/test/parallel/test-cluster-dgram-2.js b/test/parallel/test-cluster-dgram-2.js index 69e9e9d7500..d963dc09c66 100644 --- a/test/parallel/test-cluster-dgram-2.js +++ b/test/parallel/test-cluster-dgram-2.js @@ -8,7 +8,7 @@ var dgram = require('dgram'); if (common.isWindows) { - console.log('1..0 # Skipped: dgram clustering is currently not supported ' + + common.skip('dgram clustering is currently not supported ' + 'on windows.'); return; } diff --git a/test/parallel/test-cluster-dgram-reuse.js b/test/parallel/test-cluster-dgram-reuse.js index 1de6ad1e5f7..bd39a3958de 100644 --- a/test/parallel/test-cluster-dgram-reuse.js +++ b/test/parallel/test-cluster-dgram-reuse.js @@ -5,7 +5,7 @@ const cluster = require('cluster'); const dgram = require('dgram'); if (common.isWindows) { - console.log('1..0 # Skipped: dgram clustering is currently not supported ' + + common.skip('dgram clustering is currently not supported ' + 'on windows.'); return; } diff --git a/test/parallel/test-cluster-disconnect-handles.js b/test/parallel/test-cluster-disconnect-handles.js index 0ae0a0406f4..e2015254c52 100644 --- a/test/parallel/test-cluster-disconnect-handles.js +++ b/test/parallel/test-cluster-disconnect-handles.js @@ -10,7 +10,7 @@ const net = require('net'); const Protocol = require('_debugger').Protocol; if (common.isWindows) { - console.log('1..0 # Skipped: SCHED_RR not reliable on Windows'); + common.skip('SCHED_RR not reliable on Windows'); return; } diff --git a/test/parallel/test-cluster-disconnect-race.js b/test/parallel/test-cluster-disconnect-race.js index 97d55a20b1a..e89b9e134fa 100644 --- a/test/parallel/test-cluster-disconnect-race.js +++ b/test/parallel/test-cluster-disconnect-race.js @@ -9,7 +9,7 @@ const net = require('net'); const cluster = require('cluster'); if (common.isWindows) { - console.log('1..0 # Skipped: This test does not apply to Windows.'); + common.skip('This test does not apply to Windows.'); return; } diff --git a/test/parallel/test-cluster-disconnect-unshared-udp.js b/test/parallel/test-cluster-disconnect-unshared-udp.js index 2547ffae1f6..902538485d1 100644 --- a/test/parallel/test-cluster-disconnect-unshared-udp.js +++ b/test/parallel/test-cluster-disconnect-unshared-udp.js @@ -3,7 +3,7 @@ const common = require('../common'); if (common.isWindows) { - console.log('1..0 # Skipped: on windows, because clustered dgram is ENOTSUP'); + common.skip('on windows, because clustered dgram is ENOTSUP'); return; } diff --git a/test/parallel/test-cluster-http-pipe.js b/test/parallel/test-cluster-http-pipe.js index cb9b090f08e..8ea634b3034 100644 --- a/test/parallel/test-cluster-http-pipe.js +++ b/test/parallel/test-cluster-http-pipe.js @@ -6,7 +6,7 @@ const cluster = require('cluster'); const http = require('http'); if (common.isWindows) { - console.log('1..0 # Skipped: It is not possible to send pipe handles over ' + + common.skip('It is not possible to send pipe handles over ' + 'the IPC pipe on Windows'); return; } 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 a02a2ef5b6b..90bab2febe4 100644 --- a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js +++ b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js @@ -5,12 +5,12 @@ var cluster = require('cluster'); var net = require('net'); if (common.isWindows) { - console.log('1..0 # Skipped: not reliable on Windows'); + common.skip('not reliable on Windows'); return; } if (process.getuid() === 0) { - console.log('1..0 # Skipped: as this test should not be run as `root`'); + common.skip('as this test should not be run as `root`'); return; } diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js index fa9a78c26e5..57edb3f7d13 100644 --- a/test/parallel/test-crypto-authenticated.js +++ b/test/parallel/test-crypto-authenticated.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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('1..0 # Skipped: unsupported ' + test.algo + ' test'); + common.skip('unsupported ' + test.algo + ' test'); continue; } diff --git a/test/parallel/test-crypto-binary-default.js b/test/parallel/test-crypto-binary-default.js index 6418f52fd16..d2554ab6ec4 100644 --- a/test/parallel/test-crypto-binary-default.js +++ b/test/parallel/test-crypto-binary-default.js @@ -8,7 +8,7 @@ var assert = require('assert'); var constants = require('constants'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-certificate.js b/test/parallel/test-crypto-certificate.js index 9948303f323..66a5da04073 100644 --- a/test/parallel/test-crypto-certificate.js +++ b/test/parallel/test-crypto-certificate.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-cipher-decipher.js b/test/parallel/test-crypto-cipher-decipher.js index 5f867739abe..2f03aa5db4d 100644 --- a/test/parallel/test-crypto-cipher-decipher.js +++ b/test/parallel/test-crypto-cipher-decipher.js @@ -3,11 +3,11 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } if (common.hasFipsCrypto) { - console.log('1..0 # Skipped: not supported in FIPS mode'); + common.skip('not supported in FIPS mode'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-cipheriv-decipheriv.js b/test/parallel/test-crypto-cipheriv-decipheriv.js index d325c0facf7..377f0f3ee43 100644 --- a/test/parallel/test-crypto-cipheriv-decipheriv.js +++ b/test/parallel/test-crypto-cipheriv-decipheriv.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 503ba2fe089..13c98440843 100644 --- a/test/parallel/test-crypto-dh-odd-key.js +++ b/test/parallel/test-crypto-dh-odd-key.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-dh.js b/test/parallel/test-crypto-dh.js index d3919457ea5..e6b1de2475c 100644 --- a/test/parallel/test-crypto-dh.js +++ b/test/parallel/test-crypto-dh.js @@ -4,7 +4,7 @@ var assert = require('assert'); var constants = require('constants'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-domain.js b/test/parallel/test-crypto-domain.js index 349ce7e1fc9..9bb6c022964 100644 --- a/test/parallel/test-crypto-domain.js +++ b/test/parallel/test-crypto-domain.js @@ -4,7 +4,7 @@ var assert = require('assert'); var domain = require('domain'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-domains.js b/test/parallel/test-crypto-domains.js index ca93d20fdf2..9036228bf6b 100644 --- a/test/parallel/test-crypto-domains.js +++ b/test/parallel/test-crypto-domains.js @@ -7,7 +7,7 @@ var expect = ['pbkdf2', 'randomBytes', 'pseudoRandomBytes']; var errors = 0; if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-ecb.js b/test/parallel/test-crypto-ecb.js index d47ec8a8091..dbdb486e9bc 100644 --- a/test/parallel/test-crypto-ecb.js +++ b/test/parallel/test-crypto-ecb.js @@ -3,11 +3,11 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } if (common.hasFipsCrypto) { - console.log('1..0 # Skipped: BF-ECB is not FIPS 140-2 compatible'); + common.skip('BF-ECB is not FIPS 140-2 compatible'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-from-binary.js b/test/parallel/test-crypto-from-binary.js index b2782e04f28..3bd27efffd2 100644 --- a/test/parallel/test-crypto-from-binary.js +++ b/test/parallel/test-crypto-from-binary.js @@ -7,7 +7,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 c41f91241d5..a2b19a69e5b 100644 --- a/test/parallel/test-crypto-hash-stream-pipe.js +++ b/test/parallel/test-crypto-hash-stream-pipe.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-hash.js b/test/parallel/test-crypto-hash.js index 90ff1fd727d..aec035afe18 100644 --- a/test/parallel/test-crypto-hash.js +++ b/test/parallel/test-crypto-hash.js @@ -5,7 +5,7 @@ var fs = require('fs'); var path = require('path'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-hmac.js b/test/parallel/test-crypto-hmac.js index 600dd0dbb2c..cc92e048524 100644 --- a/test/parallel/test-crypto-hmac.js +++ b/test/parallel/test-crypto-hmac.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-padding-aes256.js b/test/parallel/test-crypto-padding-aes256.js index 550aa5c061f..97ed6bab29d 100644 --- a/test/parallel/test-crypto-padding-aes256.js +++ b/test/parallel/test-crypto-padding-aes256.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-padding.js b/test/parallel/test-crypto-padding.js index bc2011d3d89..a6174728735 100644 --- a/test/parallel/test-crypto-padding.js +++ b/test/parallel/test-crypto-padding.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-pbkdf2.js b/test/parallel/test-crypto-pbkdf2.js index b48b1edd5ba..0b0ab13cbbf 100644 --- a/test/parallel/test-crypto-pbkdf2.js +++ b/test/parallel/test-crypto-pbkdf2.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-random.js b/test/parallel/test-crypto-random.js index 2d28cccc4cf..b4e36dfa045 100644 --- a/test/parallel/test-crypto-random.js +++ b/test/parallel/test-crypto-random.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-rsa-dsa.js b/test/parallel/test-crypto-rsa-dsa.js index bd13ef0d912..ee3868e539a 100644 --- a/test/parallel/test-crypto-rsa-dsa.js +++ b/test/parallel/test-crypto-rsa-dsa.js @@ -5,7 +5,7 @@ var fs = require('fs'); var constants = require('constants'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-sign-verify.js b/test/parallel/test-crypto-sign-verify.js index 1bfaad3f7d0..e8d892a8d63 100644 --- a/test/parallel/test-crypto-sign-verify.js +++ b/test/parallel/test-crypto-sign-verify.js @@ -4,7 +4,7 @@ var assert = require('assert'); var fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-stream.js b/test/parallel/test-crypto-stream.js index bf0fc2ca1d0..652b81eab44 100644 --- a/test/parallel/test-crypto-stream.js +++ b/test/parallel/test-crypto-stream.js @@ -5,7 +5,7 @@ var stream = require('stream'); var util = require('util'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto-verify-failure.js b/test/parallel/test-crypto-verify-failure.js index 2bc4ce54337..f260ccfe128 100644 --- a/test/parallel/test-crypto-verify-failure.js +++ b/test/parallel/test-crypto-verify-failure.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-crypto.js b/test/parallel/test-crypto.js index 192e4287c47..271541d54a2 100644 --- a/test/parallel/test-crypto.js +++ b/test/parallel/test-crypto.js @@ -4,7 +4,7 @@ var assert = require('assert'); var util = require('util'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-cwd-enoent-preload.js b/test/parallel/test-cwd-enoent-preload.js index 7f11880ee02..b2f7ae0a4ae 100644 --- a/test/parallel/test-cwd-enoent-preload.js +++ b/test/parallel/test-cwd-enoent-preload.js @@ -6,7 +6,7 @@ const spawn = require('child_process').spawn; // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. if (process.platform === 'sunos' || common.isWindows || common.isAix) { - console.log('1..0 # Skipped: cannot rmdir current working directory'); + common.skip('cannot rmdir current working directory'); return; } diff --git a/test/parallel/test-cwd-enoent-repl.js b/test/parallel/test-cwd-enoent-repl.js index 82342ce6448..3c8b543cf13 100644 --- a/test/parallel/test-cwd-enoent-repl.js +++ b/test/parallel/test-cwd-enoent-repl.js @@ -6,7 +6,7 @@ var spawn = require('child_process').spawn; // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. if (process.platform === 'sunos' || common.isWindows || common.isAix) { - console.log('1..0 # Skipped: cannot rmdir current working directory'); + common.skip('cannot rmdir current working directory'); return; } diff --git a/test/parallel/test-cwd-enoent.js b/test/parallel/test-cwd-enoent.js index c6b3925ce3b..9ff9f86405a 100644 --- a/test/parallel/test-cwd-enoent.js +++ b/test/parallel/test-cwd-enoent.js @@ -6,7 +6,7 @@ var spawn = require('child_process').spawn; // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. if (process.platform === 'sunos' || common.isWindows || common.isAix) { - console.log('1..0 # Skipped: cannot rmdir current working directory'); + common.skip('cannot rmdir current working directory'); return; } diff --git a/test/parallel/test-dgram-bind-default-address.js b/test/parallel/test-dgram-bind-default-address.js index 75069e36186..3d786209260 100644 --- a/test/parallel/test-dgram-bind-default-address.js +++ b/test/parallel/test-dgram-bind-default-address.js @@ -5,7 +5,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'); + common.skip('In a FreeBSD jail'); return; } @@ -16,7 +16,7 @@ dgram.createSocket('udp4').bind(common.PORT + 0, common.mustCall(function() { })); if (!common.hasIPv6) { - console.log('1..0 # Skipped: udp6 part of test, because no IPv6 support'); + common.skip('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 66cdbb92ac8..696102bcb9f 100644 --- a/test/parallel/test-dgram-empty-packet.js +++ b/test/parallel/test-dgram-empty-packet.js @@ -7,7 +7,7 @@ var client; var timer; if (process.platform === 'darwin') { - console.log('1..0 # Skipped: because of 17894467 Apple bug'); + common.skip('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 6732bab159e..190a3fe61ed 100644 --- a/test/parallel/test-dgram-send-empty-buffer.js +++ b/test/parallel/test-dgram-send-empty-buffer.js @@ -3,7 +3,7 @@ const common = require('../common'); const dgram = require('dgram'); if (process.platform === 'darwin') { - console.log('1..0 # Skipped: because of 17894467 Apple bug'); + common.skip('because of 17894467 Apple bug'); return; } diff --git a/test/parallel/test-dh-padding.js b/test/parallel/test-dh-padding.js index 7d482b78f63..a9cd95225ab 100644 --- a/test/parallel/test-dh-padding.js +++ b/test/parallel/test-dh-padding.js @@ -1,11 +1,11 @@ 'use strict'; -require('../common'); +const common = require('../common'); var assert = require('assert'); try { var crypto = require('crypto'); } catch (e) { - console.log('1..0 # Skipped: node compiled without OpenSSL.'); + common.skip('node compiled without OpenSSL.'); return; } diff --git a/test/parallel/test-domain-crypto.js b/test/parallel/test-domain-crypto.js index e6dbccf86ca..1109591fee9 100644 --- a/test/parallel/test-domain-crypto.js +++ b/test/parallel/test-domain-crypto.js @@ -1,14 +1,16 @@ -/* eslint-disable required-modules */ 'use strict'; +const common = require('../common'); + try { var crypto = require('crypto'); } catch (e) { - console.log('1..0 # Skipped: node compiled without OpenSSL.'); + common.skip('node compiled without OpenSSL.'); return; } // Pollution of global is intentional as part of test. +common.globalCheck = false; // See https://github.com/nodejs/node/commit/d1eff9ab global.domain = require('domain'); diff --git a/test/parallel/test-dsa-fips-invalid-key.js b/test/parallel/test-dsa-fips-invalid-key.js index 2d30ef68910..ede3adab66c 100644 --- a/test/parallel/test-dsa-fips-invalid-key.js +++ b/test/parallel/test-dsa-fips-invalid-key.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasFipsCrypto) { - console.log('1..0 # Skipped: node compiled without FIPS OpenSSL.'); + common.skip('node compiled without FIPS OpenSSL.'); return; } diff --git a/test/parallel/test-fs-long-path.js b/test/parallel/test-fs-long-path.js index eadbcd1f78d..d0945f1e518 100644 --- a/test/parallel/test-fs-long-path.js +++ b/test/parallel/test-fs-long-path.js @@ -5,7 +5,7 @@ var path = require('path'); var assert = require('assert'); if (!common.isWindows) { - console.log('1..0 # Skipped: this test is Windows-specific.'); + common.skip('this test is Windows-specific.'); return; } diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index c61449a2db9..c2b3c015512 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -7,7 +7,7 @@ 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.log('1..0 # Skipped: platform not supported.'); + common.skip('platform not supported.'); return; } diff --git a/test/parallel/test-fs-readfile-pipe-large.js b/test/parallel/test-fs-readfile-pipe-large.js index a39f66ef802..2050e2f4268 100644 --- a/test/parallel/test-fs-readfile-pipe-large.js +++ b/test/parallel/test-fs-readfile-pipe-large.js @@ -6,7 +6,7 @@ var path = require('path'); // simulate `cat readfile.js | node readfile.js` if (common.isWindows || common.isAix) { - console.log(`1..0 # Skipped: No /dev/stdin on ${process.platform}.`); + common.skip(`No /dev/stdin on ${process.platform}.`); return; } diff --git a/test/parallel/test-fs-readfile-pipe.js b/test/parallel/test-fs-readfile-pipe.js index d4db43db6ed..f9736000a56 100644 --- a/test/parallel/test-fs-readfile-pipe.js +++ b/test/parallel/test-fs-readfile-pipe.js @@ -5,7 +5,7 @@ var assert = require('assert'); // simulate `cat readfile.js | node readfile.js` if (common.isWindows || common.isAix) { - console.log(`1..0 # Skipped: No /dev/stdin on ${process.platform}.`); + common.skip(`No /dev/stdin on ${process.platform}.`); return; } diff --git a/test/parallel/test-fs-readfilesync-pipe-large.js b/test/parallel/test-fs-readfilesync-pipe-large.js index ce667094d14..ccee29b5007 100644 --- a/test/parallel/test-fs-readfilesync-pipe-large.js +++ b/test/parallel/test-fs-readfilesync-pipe-large.js @@ -6,7 +6,7 @@ var path = require('path'); // simulate `cat readfile.js | node readfile.js` if (common.isWindows || common.isAix) { - console.log(`1..0 # Skipped: No /dev/stdin on ${process.platform}.`); + common.skip(`No /dev/stdin on ${process.platform}.`); return; } diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index aa397e51d16..bbe8c26d120 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -82,7 +82,7 @@ function test_simple_error_callback(cb) { function test_simple_relative_symlink(callback) { console.log('test_simple_relative_symlink'); if (skipSymlinks) { - console.log('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } const entry = common.tmpDir + '/symlink'; @@ -131,7 +131,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('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } @@ -160,7 +160,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('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } var expected = path.join(common.fixturesDir, 'cycles', 'folder'); @@ -188,7 +188,7 @@ function test_deep_relative_dir_symlink(callback) { function test_cyclic_link_protection(callback) { console.log('test_cyclic_link_protection'); if (skipSymlinks) { - console.log('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } var entry = common.tmpDir + '/cycles/realpath-3a'; @@ -211,7 +211,7 @@ function test_cyclic_link_protection(callback) { function test_cyclic_link_overprotection(callback) { console.log('test_cyclic_link_overprotection'); if (skipSymlinks) { - console.log('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } var cycles = common.tmpDir + '/cycles'; @@ -232,7 +232,7 @@ function test_cyclic_link_overprotection(callback) { function test_relative_input_cwd(callback) { console.log('test_relative_input_cwd'); if (skipSymlinks) { - console.log('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } @@ -271,7 +271,7 @@ function test_deep_symlink_mix(callback) { if (common.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('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } @@ -358,7 +358,7 @@ assert.equal(upone, uponeActual, function test_up_multiple(cb) { console.error('test_up_multiple'); if (skipSymlinks) { - console.log('1..0 # Skipped: symlink test (no privs)'); + common.skip('symlink test (no privs)'); return runNextTest(); } function cleanup() { diff --git a/test/parallel/test-fs-symlink.js b/test/parallel/test-fs-symlink.js index b506013b0a2..bac0677b340 100644 --- a/test/parallel/test-fs-symlink.js +++ b/test/parallel/test-fs-symlink.js @@ -13,7 +13,7 @@ if (common.isWindows) { // We'll only try to run symlink test if we have enough privileges. exec('whoami /priv', function(err, o) { if (err || o.indexOf('SeCreateSymbolicLinkPrivilege') == -1) { - console.log('1..0 # Skipped: insufficient privileges'); + common.skip('insufficient privileges'); return; } }); diff --git a/test/parallel/test-fs-watch-recursive.js b/test/parallel/test-fs-watch-recursive.js index 9c68b5e3557..7853baaa02b 100644 --- a/test/parallel/test-fs-watch-recursive.js +++ b/test/parallel/test-fs-watch-recursive.js @@ -3,7 +3,7 @@ const common = require('../common'); if (!(process.platform === 'darwin' || common.isWindows)) { - console.log('1..0 # Skipped: recursive option is darwin/windows specific'); + common.skip('recursive option is darwin/windows specific'); return; } diff --git a/test/parallel/test-http-chunk-problem.js b/test/parallel/test-http-chunk-problem.js index 6a5710e38e9..26df0b95e29 100644 --- a/test/parallel/test-http-chunk-problem.js +++ b/test/parallel/test-http-chunk-problem.js @@ -3,7 +3,7 @@ const common = require('../common'); const assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-http-default-port.js b/test/parallel/test-http-default-port.js index 69d81e9b972..c0a1ed50e34 100644 --- a/test/parallel/test-http-default-port.js +++ b/test/parallel/test-http-default-port.js @@ -18,7 +18,7 @@ let gotHttpResp = false; if (common.hasCrypto) { var https = require('https'); } else { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); } process.on('exit', function() { diff --git a/test/parallel/test-http-dns-error.js b/test/parallel/test-http-dns-error.js index 37e9fca62e0..f1f144a60a2 100644 --- a/test/parallel/test-http-dns-error.js +++ b/test/parallel/test-http-dns-error.js @@ -7,7 +7,7 @@ var http = require('http'); if (common.hasCrypto) { var https = require('https'); } else { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); } var host = '*'.repeat(256); @@ -36,7 +36,7 @@ function test(mod) { if (common.hasCrypto) { test(https); } else { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); } test(http); diff --git a/test/parallel/test-http-full-response.js b/test/parallel/test-http-full-response.js index 767efa3cd66..331f2171d82 100644 --- a/test/parallel/test-http-full-response.js +++ b/test/parallel/test-http-full-response.js @@ -24,7 +24,7 @@ function runAb(opts, callback) { exec(command, function(err, stdout, stderr) { if (err) { if (/ab|apr/mi.test(stderr)) { - console.log('1..0 # Skipped: problem spawning `ab`.\n' + stderr); + common.skip('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 c7bb9f0301e..9bf213a8804 100644 --- a/test/parallel/test-http-localaddress.js +++ b/test/parallel/test-http-localaddress.js @@ -4,7 +4,7 @@ const http = require('http'); const assert = require('assert'); if (!common.hasMultiLocalhost()) { - console.log('1..0 # Skipped: platform-specific test.'); + common.skip('platform-specific test.'); return; } diff --git a/test/parallel/test-http-url.parse-https.request.js b/test/parallel/test-http-url.parse-https.request.js index df01ae64f81..d843d9838d9 100644 --- a/test/parallel/test-http-url.parse-https.request.js +++ b/test/parallel/test-http-url.parse-https.request.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-agent-servername.js b/test/parallel/test-https-agent-servername.js index f7d5e5a40d8..1ebed86a828 100644 --- a/test/parallel/test-https-agent-servername.js +++ b/test/parallel/test-https-agent-servername.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-https-agent-session-eviction.js b/test/parallel/test-https-agent-session-eviction.js index df6fdc3658c..37f4fa3e564 100644 --- a/test/parallel/test-https-agent-session-eviction.js +++ b/test/parallel/test-https-agent-session-eviction.js @@ -3,7 +3,7 @@ const common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-https-agent-session-reuse.js b/test/parallel/test-https-agent-session-reuse.js index 2c202524456..1421d545783 100644 --- a/test/parallel/test-https-agent-session-reuse.js +++ b/test/parallel/test-https-agent-session-reuse.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-https-agent-sni.js b/test/parallel/test-https-agent-sni.js index 117075f6826..b8f6c8cde85 100644 --- a/test/parallel/test-https-agent-sni.js +++ b/test/parallel/test-https-agent-sni.js @@ -3,7 +3,7 @@ const common = require('../common'); const assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } const https = require('https'); diff --git a/test/parallel/test-https-agent.js b/test/parallel/test-https-agent.js index 9dea313e42e..08d35337121 100644 --- a/test/parallel/test-https-agent.js +++ b/test/parallel/test-https-agent.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-byteswritten.js b/test/parallel/test-https-byteswritten.js index 4d42714f3dc..2f8856ca999 100644 --- a/test/parallel/test-https-byteswritten.js +++ b/test/parallel/test-https-byteswritten.js @@ -4,7 +4,7 @@ var assert = require('assert'); var fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-client-checkServerIdentity.js b/test/parallel/test-https-client-checkServerIdentity.js index e49427dcc76..f16285860af 100644 --- a/test/parallel/test-https-client-checkServerIdentity.js +++ b/test/parallel/test-https-client-checkServerIdentity.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 e8922de9434..50875e6d452 100644 --- a/test/parallel/test-https-client-get-url.js +++ b/test/parallel/test-https-client-get-url.js @@ -6,7 +6,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-client-reject.js b/test/parallel/test-https-client-reject.js index fc76e5b80f5..ee19de2acdd 100644 --- a/test/parallel/test-https-client-reject.js +++ b/test/parallel/test-https-client-reject.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-client-resume.js b/test/parallel/test-https-client-resume.js index 8f849b14b58..b91f3d83148 100644 --- a/test/parallel/test-https-client-resume.js +++ b/test/parallel/test-https-client-resume.js @@ -6,7 +6,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-close.js b/test/parallel/test-https-close.js index 8a9a4f89960..18237a612bd 100644 --- a/test/parallel/test-https-close.js +++ b/test/parallel/test-https-close.js @@ -3,7 +3,7 @@ const common = require('../common'); const fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } const https = require('https'); diff --git a/test/parallel/test-https-connecting-to-http.js b/test/parallel/test-https-connecting-to-http.js index 755abf9427f..2b705b4cfab 100644 --- a/test/parallel/test-https-connecting-to-http.js +++ b/test/parallel/test-https-connecting-to-http.js @@ -6,7 +6,7 @@ var assert = require('assert'); var http = require('http'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-drain.js b/test/parallel/test-https-drain.js index 1ba5e2a4679..e4ce6d98903 100644 --- a/test/parallel/test-https-drain.js +++ b/test/parallel/test-https-drain.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 50d909373ff..5431d33c3d3 100644 --- a/test/parallel/test-https-eof-for-eom.js +++ b/test/parallel/test-https-eof-for-eom.js @@ -11,7 +11,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-foafssl.js b/test/parallel/test-https-foafssl.js index 5e480bf6adc..fa6200c845e 100644 --- a/test/parallel/test-https-foafssl.js +++ b/test/parallel/test-https-foafssl.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } @@ -13,7 +13,7 @@ var fs = require('fs'); var spawn = require('child_process').spawn; if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-host-headers.js b/test/parallel/test-https-host-headers.js index 1e71fd5b9ef..4c292d7e8bb 100644 --- a/test/parallel/test-https-host-headers.js +++ b/test/parallel/test-https-host-headers.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 f5bb1f84c31..75f915a05cc 100644 --- a/test/parallel/test-https-localaddress-bind-error.js +++ b/test/parallel/test-https-localaddress-bind-error.js @@ -4,7 +4,7 @@ var assert = require('assert'); var fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-localaddress.js b/test/parallel/test-https-localaddress.js index bce65d58e29..ed70d0281cf 100644 --- a/test/parallel/test-https-localaddress.js +++ b/test/parallel/test-https-localaddress.js @@ -4,13 +4,13 @@ const fs = require('fs'); const assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); if (!common.hasMultiLocalhost()) { - console.log('1..0 # Skipped: platform-specific test.'); + common.skip('platform-specific test.'); return; } diff --git a/test/parallel/test-https-pfx.js b/test/parallel/test-https-pfx.js index 5e080b4e3de..0d2c6d367a6 100644 --- a/test/parallel/test-https-pfx.js +++ b/test/parallel/test-https-pfx.js @@ -4,7 +4,7 @@ var assert = require('assert'); var fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-req-split.js b/test/parallel/test-https-req-split.js index 479fff36b4e..d7b49b6d71b 100644 --- a/test/parallel/test-https-req-split.js +++ b/test/parallel/test-https-req-split.js @@ -6,7 +6,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 bfea7c4d5d5..176d056b66c 100644 --- a/test/parallel/test-https-set-timeout-server.js +++ b/test/parallel/test-https-set-timeout-server.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-simple.js b/test/parallel/test-https-simple.js index 92f9bde2ef8..14ebb29e2d8 100644 --- a/test/parallel/test-https-simple.js +++ b/test/parallel/test-https-simple.js @@ -2,7 +2,7 @@ const common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-https-socket-options.js b/test/parallel/test-https-socket-options.js index 2adf8c798df..0306c659026 100644 --- a/test/parallel/test-https-socket-options.js +++ b/test/parallel/test-https-socket-options.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index 04561959de1..9f845470b0f 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -6,7 +6,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 a195ce1938b..f543150de7e 100644 --- a/test/parallel/test-https-timeout-server-2.js +++ b/test/parallel/test-https-timeout-server-2.js @@ -4,7 +4,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-timeout-server.js b/test/parallel/test-https-timeout-server.js index f6d5d75a88a..8e362da82f8 100644 --- a/test/parallel/test-https-timeout-server.js +++ b/test/parallel/test-https-timeout-server.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-timeout.js b/test/parallel/test-https-timeout.js index 2b41dadaec7..20ee1d6868f 100644 --- a/test/parallel/test-https-timeout.js +++ b/test/parallel/test-https-timeout.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-https-truncate.js b/test/parallel/test-https-truncate.js index 83506c65d6f..c9bf1766a2b 100644 --- a/test/parallel/test-https-truncate.js +++ b/test/parallel/test-https-truncate.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-intl.js b/test/parallel/test-intl.js index 551cc013131..7c24ad69b31 100644 --- a/test/parallel/test-intl.js +++ b/test/parallel/test-intl.js @@ -1,5 +1,5 @@ 'use strict'; -require('../common'); +const common = require('../common'); var assert = require('assert'); // does node think that i18n was enabled? @@ -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('1..0 # Skipped: Intl tests because Intl object not present.'); + common.skip('Intl tests because Intl object not present.'); } else { const erMsg = @@ -46,7 +46,7 @@ if (!haveIntl) { // If list is specified and doesn't contain 'en' then return. if (process.config.variables.icu_locales && !haveLocale('en')) { - console.log('1..0 # Skipped: detailed Intl tests because English is not ' + + common.skip('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)); diff --git a/test/parallel/test-listen-fd-cluster.js b/test/parallel/test-listen-fd-cluster.js index 419efc7c099..92aadfd49f8 100644 --- a/test/parallel/test-listen-fd-cluster.js +++ b/test/parallel/test-listen-fd-cluster.js @@ -9,7 +9,7 @@ var cluster = require('cluster'); console.error('Cluster listen fd test', process.argv[2] || 'runner'); if (common.isWindows) { - console.log('1..0 # Skipped: This test is disabled on windows.'); + common.skip('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 472b1e8ff93..abe3b7ca512 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 (common.isWindows) { - console.log('1..0 # Skipped: This test is disabled on windows.'); + common.skip('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 12c8c3ddc43..1bb1a7f1333 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 (common.isWindows) { - console.log('1..0 # Skipped: This test is disabled on windows.'); + common.skip('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 3e0fa521f75..25a5393bd4a 100644 --- a/test/parallel/test-listen-fd-server.js +++ b/test/parallel/test-listen-fd-server.js @@ -6,7 +6,7 @@ var net = require('net'); var PORT = common.PORT; if (common.isWindows) { - console.log('1..0 # Skipped: This test is disabled on windows.'); + common.skip('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 072a6aadcb8..14553098540 100644 --- a/test/parallel/test-module-loading-error.js +++ b/test/parallel/test-module-loading-error.js @@ -1,5 +1,5 @@ 'use strict'; -require('../common'); +const common = require('../common'); var assert = require('assert'); console.error('load test-module-loading-error.js'); @@ -13,7 +13,7 @@ var error_desc = { var dlerror_msg = error_desc[process.platform]; if (!dlerror_msg) { - console.log('1..0 # Skipped: platform not supported.'); + common.skip('platform not supported.'); return; } diff --git a/test/parallel/test-net-connect-options-ipv6.js b/test/parallel/test-net-connect-options-ipv6.js index 5cce7325f91..f84c02678ff 100644 --- a/test/parallel/test-net-connect-options-ipv6.js +++ b/test/parallel/test-net-connect-options-ipv6.js @@ -4,7 +4,7 @@ const assert = require('assert'); const net = require('net'); if (!common.hasIPv6) { - console.log('1..0 # Skipped: no IPv6 support'); + common.skip('no IPv6 support'); return; } @@ -60,7 +60,7 @@ function tryConnect() { if (host) tryConnect(); else { - console.log('1..0 # Skipped: no IPv6 localhost support'); + common.skip('no IPv6 localhost support'); server.close(); } return; diff --git a/test/parallel/test-net-socket-local-address.js b/test/parallel/test-net-socket-local-address.js index 379bed363e7..2569c363f49 100644 --- a/test/parallel/test-net-socket-local-address.js +++ b/test/parallel/test-net-socket-local-address.js @@ -5,7 +5,7 @@ const net = require('net'); // skip test in FreeBSD jails if (common.inFreeBSDJail) { - console.log('1..0 # Skipped: In a FreeBSD jail'); + common.skip('In a FreeBSD jail'); return; } diff --git a/test/parallel/test-process-getgroups.js b/test/parallel/test-process-getgroups.js index 08eab8d5a8a..6d07692a764 100644 --- a/test/parallel/test-process-getgroups.js +++ b/test/parallel/test-process-getgroups.js @@ -1,10 +1,10 @@ 'use strict'; -require('../common'); +const common = require('../common'); var assert = require('assert'); var exec = require('child_process').exec; if (process.platform === 'darwin') { - console.log('1..0 # Skipped: Output of `id -G` is unreliable on Darwin.'); + common.skip('Output of `id -G` is unreliable on Darwin.'); return; } diff --git a/test/parallel/test-process-remove-all-signal-listeners.js b/test/parallel/test-process-remove-all-signal-listeners.js index 59c2ae926b1..f05e1f9dec7 100644 --- a/test/parallel/test-process-remove-all-signal-listeners.js +++ b/test/parallel/test-process-remove-all-signal-listeners.js @@ -5,7 +5,7 @@ const spawn = require('child_process').spawn; const common = require('../common'); if (common.isWindows) { - console.log('1..0 # Skipped: Win32 doesn\'t have signals, just a kind of ' + + common.skip('Win32 doesn\'t have signals, just a kind of ' + 'emulation, insufficient for this test to apply.'); return; } diff --git a/test/parallel/test-regress-GH-1531.js b/test/parallel/test-regress-GH-1531.js index 097611e1bfb..79766934ede 100644 --- a/test/parallel/test-regress-GH-1531.js +++ b/test/parallel/test-regress-GH-1531.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-regress-GH-3542.js b/test/parallel/test-regress-GH-3542.js index 77b8cdd6981..72d46375b45 100644 --- a/test/parallel/test-regress-GH-3542.js +++ b/test/parallel/test-regress-GH-3542.js @@ -7,7 +7,7 @@ let succeeded = 0; // This test is only relevant on Windows. if (!common.isWindows) { - console.log('1..0 # Skipped: Windows specific test.'); + common.skip('Windows specific test.'); return; } diff --git a/test/parallel/test-repl-history-perm.js b/test/parallel/test-repl-history-perm.js index 717728bc4fc..c7d2852539a 100644 --- a/test/parallel/test-repl-history-perm.js +++ b/test/parallel/test-repl-history-perm.js @@ -4,7 +4,7 @@ const common = require('../common'); if (common.isWindows) { - console.log('1..0 # Skipped: Win32 uses ACLs for file permissions, ' + + common.skip('Win32 uses ACLs for file permissions, ' + 'modes are always 0666 and says nothing about group/other ' + 'read access.'); return; diff --git a/test/parallel/test-require-long-path.js b/test/parallel/test-require-long-path.js index c30a76a5a9e..1a8ce1b7dfd 100644 --- a/test/parallel/test-require-long-path.js +++ b/test/parallel/test-require-long-path.js @@ -4,7 +4,7 @@ const fs = require('fs'); const path = require('path'); if (!common.isWindows) { - console.log('1..0 # Skipped: this test is Windows-specific.'); + common.skip('this test is Windows-specific.'); return; } diff --git a/test/parallel/test-setproctitle.js b/test/parallel/test-setproctitle.js index 40107f57749..90d7b7a10df 100644 --- a/test/parallel/test-setproctitle.js +++ b/test/parallel/test-setproctitle.js @@ -1,13 +1,13 @@ 'use strict'; // Original test written by Jakub Lekstan +const common = require('../common'); // FIXME add sunos support if ('linux freebsd darwin'.indexOf(process.platform) === -1) { - console.log(`1..0 # Skipped: Unsupported platform [${process.platform}]`); + common.skip(`Unsupported platform [${process.platform}]`); return; } -require('../common'); var assert = require('assert'); var exec = require('child_process').exec; var path = require('path'); diff --git a/test/parallel/test-signal-handler.js b/test/parallel/test-signal-handler.js index dc37a8a1f67..43198de726d 100644 --- a/test/parallel/test-signal-handler.js +++ b/test/parallel/test-signal-handler.js @@ -4,7 +4,7 @@ const common = require('../common'); const assert = require('assert'); if (common.isWindows) { - console.log('1..0 # Skipped: SIGUSR1 and SIGHUP signals are not supported'); + common.skip('SIGUSR1 and SIGHUP signals are not supported'); return; } diff --git a/test/parallel/test-spawn-cmd-named-pipe.js b/test/parallel/test-spawn-cmd-named-pipe.js index 5371577e6c4..fafc5b2167b 100644 --- a/test/parallel/test-spawn-cmd-named-pipe.js +++ b/test/parallel/test-spawn-cmd-named-pipe.js @@ -4,7 +4,7 @@ const assert = require('assert'); // This test is intended for Windows only if (!common.isWindows) { - console.log('1..0 # Skipped: this test is Windows-specific.'); + common.skip('this test is Windows-specific.'); return; } diff --git a/test/parallel/test-stdio-closed.js b/test/parallel/test-stdio-closed.js index bf9a57bd688..0f94289ee96 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 (common.isWindows) { - console.log('1..0 # Skipped: platform not supported.'); + common.skip('platform not supported.'); return; } diff --git a/test/parallel/test-stream2-unpipe-drain.js b/test/parallel/test-stream2-unpipe-drain.js index daad70a282a..39c3b19069b 100644 --- a/test/parallel/test-stream2-unpipe-drain.js +++ b/test/parallel/test-stream2-unpipe-drain.js @@ -4,7 +4,7 @@ var assert = require('assert'); var stream = require('stream'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/parallel/test-tick-processor.js b/test/parallel/test-tick-processor.js index b22e2ec14a3..686e7178360 100644 --- a/test/parallel/test-tick-processor.js +++ b/test/parallel/test-tick-processor.js @@ -10,7 +10,7 @@ var common = require('../common'); // addresses correctly and runs out of memory // Disabling until we get a fix upstreamed into V8 if (common.isAix) { - console.log('1..0 # Skipped: Aix address range too big for scripts.'); + common.skip('Aix address range too big for scripts.'); return; } @@ -32,7 +32,7 @@ if (common.isWindows || common.isAix || common.isLinuxPPCBE || common.isFreeBSD) { - console.log('1..0 # Skipped: C++ symbols are not mapped for this os.'); + common.skip('C++ symbols are not mapped for this os.'); return; } runTest(/RunInDebugContext/, diff --git a/test/parallel/test-tls-0-dns-altname.js b/test/parallel/test-tls-0-dns-altname.js index 793b56426f9..bafbcd419a5 100644 --- a/test/parallel/test-tls-0-dns-altname.js +++ b/test/parallel/test-tls-0-dns-altname.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-alert-handling.js b/test/parallel/test-tls-alert-handling.js index 5e63384b002..7abde524bdd 100644 --- a/test/parallel/test-tls-alert-handling.js +++ b/test/parallel/test-tls-alert-handling.js @@ -3,12 +3,12 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-alert.js b/test/parallel/test-tls-alert.js index 4eedeaa7854..6ebb1e9e0d7 100644 --- a/test/parallel/test-tls-alert.js +++ b/test/parallel/test-tls-alert.js @@ -3,12 +3,12 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 d89a4e9930c..902d37951a2 100644 --- a/test/parallel/test-tls-async-cb-after-socket-end.js +++ b/test/parallel/test-tls-async-cb-after-socket-end.js @@ -7,7 +7,7 @@ var fs = require('fs'); var constants = require('constants'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-cert-regression.js b/test/parallel/test-tls-cert-regression.js index 4406e53ab0f..9a4ac91876b 100644 --- a/test/parallel/test-tls-cert-regression.js +++ b/test/parallel/test-tls-cert-regression.js @@ -3,7 +3,7 @@ var assert = require('assert'); var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 8d2155b94ea..c7d0a7ba160 100644 --- a/test/parallel/test-tls-check-server-identity.js +++ b/test/parallel/test-tls-check-server-identity.js @@ -4,7 +4,7 @@ var assert = require('assert'); var util = require('util'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-cipher-list.js b/test/parallel/test-tls-cipher-list.js index 70c99dd91e4..c6abce18ba3 100644 --- a/test/parallel/test-tls-cipher-list.js +++ b/test/parallel/test-tls-cipher-list.js @@ -2,7 +2,7 @@ const common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-client-abort.js b/test/parallel/test-tls-client-abort.js index 934162c35a4..d2fcf3e687e 100644 --- a/test/parallel/test-tls-client-abort.js +++ b/test/parallel/test-tls-client-abort.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-client-abort2.js b/test/parallel/test-tls-client-abort2.js index 194882e7d52..4bb8f00cf5f 100644 --- a/test/parallel/test-tls-client-abort2.js +++ b/test/parallel/test-tls-client-abort2.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 9905fc45bdc..ebfc072dd33 100644 --- a/test/parallel/test-tls-client-default-ciphers.js +++ b/test/parallel/test-tls-client-default-ciphers.js @@ -3,7 +3,7 @@ var assert = require('assert'); var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 554ac686dbd..9031f29e8d0 100644 --- a/test/parallel/test-tls-client-destroy-soon.js +++ b/test/parallel/test-tls-client-destroy-soon.js @@ -7,7 +7,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-client-reject.js b/test/parallel/test-tls-client-reject.js index 2f9ea230a06..db53eb4b129 100644 --- a/test/parallel/test-tls-client-reject.js +++ b/test/parallel/test-tls-client-reject.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-client-resume.js b/test/parallel/test-tls-client-resume.js index 002151b7d82..b7fd2fc9d9f 100644 --- a/test/parallel/test-tls-client-resume.js +++ b/test/parallel/test-tls-client-resume.js @@ -7,7 +7,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-client-verify.js b/test/parallel/test-tls-client-verify.js index b4014ab351d..ed142b86529 100644 --- a/test/parallel/test-tls-client-verify.js +++ b/test/parallel/test-tls-client-verify.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-close-error.js b/test/parallel/test-tls-close-error.js index bd38cb55f7a..e338e8ecb7f 100644 --- a/test/parallel/test-tls-close-error.js +++ b/test/parallel/test-tls-close-error.js @@ -4,7 +4,7 @@ var assert = require('assert'); var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-close-notify.js b/test/parallel/test-tls-close-notify.js index 5545f4512d5..d06484af8b9 100644 --- a/test/parallel/test-tls-close-notify.js +++ b/test/parallel/test-tls-close-notify.js @@ -3,7 +3,7 @@ var assert = require('assert'); var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-cnnic-whitelist.js b/test/parallel/test-tls-cnnic-whitelist.js index 85e1d90e027..2b2a818969d 100644 --- a/test/parallel/test-tls-cnnic-whitelist.js +++ b/test/parallel/test-tls-cnnic-whitelist.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-connect-given-socket.js b/test/parallel/test-tls-connect-given-socket.js index 2fd44d87010..41ea94883ef 100644 --- a/test/parallel/test-tls-connect-given-socket.js +++ b/test/parallel/test-tls-connect-given-socket.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 a6ead6ea6dc..86203d7f42d 100644 --- a/test/parallel/test-tls-connect-no-host.js +++ b/test/parallel/test-tls-connect-no-host.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-connect-pipe.js b/test/parallel/test-tls-connect-pipe.js index ae8062635c8..acf64f9af7c 100644 --- a/test/parallel/test-tls-connect-pipe.js +++ b/test/parallel/test-tls-connect-pipe.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-connect-simple.js b/test/parallel/test-tls-connect-simple.js index f56b4baed72..f21417cef8f 100644 --- a/test/parallel/test-tls-connect-simple.js +++ b/test/parallel/test-tls-connect-simple.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-connect.js b/test/parallel/test-tls-connect.js index ce4317ac302..3853ea66bc8 100644 --- a/test/parallel/test-tls-connect.js +++ b/test/parallel/test-tls-connect.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 aec76d11b56..0fef55ff772 100644 --- a/test/parallel/test-tls-delayed-attach-error.js +++ b/test/parallel/test-tls-delayed-attach-error.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-delayed-attach.js b/test/parallel/test-tls-delayed-attach.js index 2fbafd8ecb3..ba2002dde30 100644 --- a/test/parallel/test-tls-delayed-attach.js +++ b/test/parallel/test-tls-delayed-attach.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 26c20264735..4f6ede968be 100644 --- a/test/parallel/test-tls-destroy-whilst-write.js +++ b/test/parallel/test-tls-destroy-whilst-write.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-dhe.js b/test/parallel/test-tls-dhe.js index ffcf52947f0..4bf1b7bf233 100644 --- a/test/parallel/test-tls-dhe.js +++ b/test/parallel/test-tls-dhe.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-ecdh-disable.js b/test/parallel/test-tls-ecdh-disable.js index 9bfb5f871a4..a7e18a319af 100644 --- a/test/parallel/test-tls-ecdh-disable.js +++ b/test/parallel/test-tls-ecdh-disable.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-ecdh.js b/test/parallel/test-tls-ecdh.js index a6e16114b95..9ecd5c16e01 100644 --- a/test/parallel/test-tls-ecdh.js +++ b/test/parallel/test-tls-ecdh.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-econnreset.js b/test/parallel/test-tls-econnreset.js index d60d3852a8a..7acf98a3534 100644 --- a/test/parallel/test-tls-econnreset.js +++ b/test/parallel/test-tls-econnreset.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-external-accessor.js b/test/parallel/test-tls-external-accessor.js index 919af0e8f33..08a4ad16e8b 100644 --- a/test/parallel/test-tls-external-accessor.js +++ b/test/parallel/test-tls-external-accessor.js @@ -4,7 +4,7 @@ const common = require('../common'); const assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-fast-writing.js b/test/parallel/test-tls-fast-writing.js index 2a0130c1622..98156854c5f 100644 --- a/test/parallel/test-tls-fast-writing.js +++ b/test/parallel/test-tls-fast-writing.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 ee2c21f6b5c..38197b62017 100644 --- a/test/parallel/test-tls-friendly-error-message.js +++ b/test/parallel/test-tls-friendly-error-message.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-getcipher.js b/test/parallel/test-tls-getcipher.js index 646d396eca9..9e525b8c477 100644 --- a/test/parallel/test-tls-getcipher.js +++ b/test/parallel/test-tls-getcipher.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-handshake-error.js b/test/parallel/test-tls-handshake-error.js index f65440ed93b..3bb583bb2c7 100644 --- a/test/parallel/test-tls-handshake-error.js +++ b/test/parallel/test-tls-handshake-error.js @@ -4,7 +4,7 @@ var assert = require('assert'); var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-handshake-nohang.js b/test/parallel/test-tls-handshake-nohang.js index 374ac02a2f4..052833a50e3 100644 --- a/test/parallel/test-tls-handshake-nohang.js +++ b/test/parallel/test-tls-handshake-nohang.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 3378583af22..e35fa548301 100644 --- a/test/parallel/test-tls-hello-parser-failure.js +++ b/test/parallel/test-tls-hello-parser-failure.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-honorcipherorder.js b/test/parallel/test-tls-honorcipherorder.js index 28c930b07ed..dd3ead8d42d 100644 --- a/test/parallel/test-tls-honorcipherorder.js +++ b/test/parallel/test-tls-honorcipherorder.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js index 8946f52bdd6..2f4429c41d9 100644 --- a/test/parallel/test-tls-inception.js +++ b/test/parallel/test-tls-inception.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-interleave.js b/test/parallel/test-tls-interleave.js index fd93a05e593..0c78e3e71a2 100644 --- a/test/parallel/test-tls-interleave.js +++ b/test/parallel/test-tls-interleave.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-invoke-queued.js b/test/parallel/test-tls-invoke-queued.js index efa5c0aa9aa..8b0d0e1271d 100644 --- a/test/parallel/test-tls-invoke-queued.js +++ b/test/parallel/test-tls-invoke-queued.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-js-stream.js b/test/parallel/test-tls-js-stream.js index 1c5e749911b..ddfcaf94bf1 100644 --- a/test/parallel/test-tls-js-stream.js +++ b/test/parallel/test-tls-js-stream.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 5ee4e025f5d..5e20e753395 100644 --- a/test/parallel/test-tls-junk-closes-server.js +++ b/test/parallel/test-tls-junk-closes-server.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-junk-server.js b/test/parallel/test-tls-junk-server.js index 4eb8129a11d..af454730218 100644 --- a/test/parallel/test-tls-junk-server.js +++ b/test/parallel/test-tls-junk-server.js @@ -2,7 +2,7 @@ const common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-key-mismatch.js b/test/parallel/test-tls-key-mismatch.js index 2e17a493107..f0eb8121bd6 100644 --- a/test/parallel/test-tls-key-mismatch.js +++ b/test/parallel/test-tls-key-mismatch.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-legacy-onselect.js b/test/parallel/test-tls-legacy-onselect.js index d3b20d5d8a4..6151d503c4d 100644 --- a/test/parallel/test-tls-legacy-onselect.js +++ b/test/parallel/test-tls-legacy-onselect.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-max-send-fragment.js b/test/parallel/test-tls-max-send-fragment.js index 746994a69ca..29243c93177 100644 --- a/test/parallel/test-tls-max-send-fragment.js +++ b/test/parallel/test-tls-max-send-fragment.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-multi-key.js b/test/parallel/test-tls-multi-key.js index 17b409f284d..8c8fd5ded4a 100644 --- a/test/parallel/test-tls-multi-key.js +++ b/test/parallel/test-tls-multi-key.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-no-cert-required.js b/test/parallel/test-tls-no-cert-required.js index 97863606cf2..72e24c59f63 100644 --- a/test/parallel/test-tls-no-cert-required.js +++ b/test/parallel/test-tls-no-cert-required.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 ff9806cdb02..2d2055eae8f 100644 --- a/test/parallel/test-tls-no-rsa-key.js +++ b/test/parallel/test-tls-no-rsa-key.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-no-sslv23.js b/test/parallel/test-tls-no-sslv23.js index 702019a0bc8..0db61afe0e9 100644 --- a/test/parallel/test-tls-no-sslv23.js +++ b/test/parallel/test-tls-no-sslv23.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-no-sslv3.js b/test/parallel/test-tls-no-sslv3.js index 44a8b4e2c0f..3ab62a26724 100644 --- a/test/parallel/test-tls-no-sslv3.js +++ b/test/parallel/test-tls-no-sslv3.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); @@ -12,7 +12,7 @@ var fs = require('fs'); var spawn = require('child_process').spawn; if (common.opensslCli === false) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } @@ -52,7 +52,7 @@ server.on('clientError', (err) => errors.push(err)); process.on('exit', function() { if (/unknown option -ssl3/.test(stderr)) { - console.log('1..0 # Skipped: `openssl s_client -ssl3` not supported.'); + common.skip('`openssl s_client -ssl3` not supported.'); } else { assert.equal(errors.length, 1); assert(/:wrong version number/.test(errors[0].message)); diff --git a/test/parallel/test-tls-npn-server-client.js b/test/parallel/test-tls-npn-server-client.js index d74d65c8b03..446d249c608 100644 --- a/test/parallel/test-tls-npn-server-client.js +++ b/test/parallel/test-tls-npn-server-client.js @@ -1,6 +1,6 @@ 'use strict'; if (!process.features.tls_npn) { - console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + common.skip('node compiled without OpenSSL or ' + 'with old OpenSSL version.'); return; } @@ -10,7 +10,7 @@ const assert = require('assert'); const fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-ocsp-callback.js b/test/parallel/test-tls-ocsp-callback.js index e9443f45357..07ce53c53f0 100644 --- a/test/parallel/test-tls-ocsp-callback.js +++ b/test/parallel/test-tls-ocsp-callback.js @@ -2,17 +2,17 @@ var common = require('../common'); if (!process.features.tls_ocsp) { - console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + common.skip('node compiled without OpenSSL or ' + 'with old OpenSSL version.'); return; } if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 84c95a99db5..1b5a3f342f5 100644 --- a/test/parallel/test-tls-on-empty-socket.js +++ b/test/parallel/test-tls-on-empty-socket.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 cf3ad776f7c..eab72e41155 100644 --- a/test/parallel/test-tls-over-http-tunnel.js +++ b/test/parallel/test-tls-over-http-tunnel.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/parallel/test-tls-passphrase.js b/test/parallel/test-tls-passphrase.js index 05015399553..f04c8e28076 100644 --- a/test/parallel/test-tls-passphrase.js +++ b/test/parallel/test-tls-passphrase.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-pause.js b/test/parallel/test-tls-pause.js index a19c4aee403..4943cfdfefe 100644 --- a/test/parallel/test-tls-pause.js +++ b/test/parallel/test-tls-pause.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 32b1583a0c4..00f42c40659 100644 --- a/test/parallel/test-tls-peer-certificate-encoding.js +++ b/test/parallel/test-tls-peer-certificate-encoding.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 50ce9037f8d..c70620389fa 100644 --- a/test/parallel/test-tls-peer-certificate-multi-keys.js +++ b/test/parallel/test-tls-peer-certificate-multi-keys.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-peer-certificate.js b/test/parallel/test-tls-peer-certificate.js index e043c5933b9..a6618d5fc62 100644 --- a/test/parallel/test-tls-peer-certificate.js +++ b/test/parallel/test-tls-peer-certificate.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-pfx-gh-5100-regr.js b/test/parallel/test-tls-pfx-gh-5100-regr.js index 865ac2ba3f2..4123efde71c 100644 --- a/test/parallel/test-tls-pfx-gh-5100-regr.js +++ b/test/parallel/test-tls-pfx-gh-5100-regr.js @@ -3,7 +3,7 @@ const common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: node compiled without crypto.'); + common.skip('node compiled without crypto.'); return; } diff --git a/test/parallel/test-tls-regr-gh-5108.js b/test/parallel/test-tls-regr-gh-5108.js index 5efcb76eab9..af295fe0db1 100644 --- a/test/parallel/test-tls-regr-gh-5108.js +++ b/test/parallel/test-tls-regr-gh-5108.js @@ -2,7 +2,7 @@ const common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-request-timeout.js b/test/parallel/test-tls-request-timeout.js index 0db2a613afc..6c24c0c2ce0 100644 --- a/test/parallel/test-tls-request-timeout.js +++ b/test/parallel/test-tls-request-timeout.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-securepair-server.js b/test/parallel/test-tls-securepair-server.js index ef182f3b5de..f846f36d3ff 100644 --- a/test/parallel/test-tls-securepair-server.js +++ b/test/parallel/test-tls-securepair-server.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-server-connection-server.js b/test/parallel/test-tls-server-connection-server.js index 534a16a440c..41847cb8b36 100644 --- a/test/parallel/test-tls-server-connection-server.js +++ b/test/parallel/test-tls-server-connection-server.js @@ -2,7 +2,7 @@ const common = require('../common'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-server-verify.js b/test/parallel/test-tls-server-verify.js index c9d4d263f5b..f1a6132a661 100644 --- a/test/parallel/test-tls-server-verify.js +++ b/test/parallel/test-tls-server-verify.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } @@ -99,7 +99,7 @@ var testCases = ]; if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-session-cache.js b/test/parallel/test-tls-session-cache.js index ddceb973f5f..c2bebc39dd1 100644 --- a/test/parallel/test-tls-session-cache.js +++ b/test/parallel/test-tls-session-cache.js @@ -2,12 +2,12 @@ var common = require('../common'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-set-ciphers.js b/test/parallel/test-tls-set-ciphers.js index 696644cdc43..efdd4260adb 100644 --- a/test/parallel/test-tls-set-ciphers.js +++ b/test/parallel/test-tls-set-ciphers.js @@ -2,12 +2,12 @@ var common = require('../common'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/parallel/test-tls-set-encoding.js b/test/parallel/test-tls-set-encoding.js index ec728dad0c8..bd34ede8f5c 100644 --- a/test/parallel/test-tls-set-encoding.js +++ b/test/parallel/test-tls-set-encoding.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-sni-option.js b/test/parallel/test-tls-sni-option.js index 83e62133363..5a07225fb58 100644 --- a/test/parallel/test-tls-sni-option.js +++ b/test/parallel/test-tls-sni-option.js @@ -1,6 +1,6 @@ 'use strict'; if (!process.features.tls_sni) { - console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + common.skip('node compiled without OpenSSL or ' + 'with old OpenSSL version.'); return; } @@ -10,7 +10,7 @@ const assert = require('assert'); const fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 733713c8e72..62b22b5289e 100644 --- a/test/parallel/test-tls-sni-server-client.js +++ b/test/parallel/test-tls-sni-server-client.js @@ -1,6 +1,6 @@ 'use strict'; if (!process.features.tls_sni) { - console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + common.skip('node compiled without OpenSSL or ' + 'with old OpenSSL version.'); return; } @@ -10,7 +10,7 @@ const assert = require('assert'); const fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-socket-default-options.js b/test/parallel/test-tls-socket-default-options.js index c2c6e518bbc..70f24ebf2b8 100644 --- a/test/parallel/test-tls-socket-default-options.js +++ b/test/parallel/test-tls-socket-default-options.js @@ -3,7 +3,7 @@ const common = require('../common'); const assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } const tls = require('tls'); diff --git a/test/parallel/test-tls-ticket-cluster.js b/test/parallel/test-tls-ticket-cluster.js index 1fd1776ca81..4d1667a7adc 100644 --- a/test/parallel/test-tls-ticket-cluster.js +++ b/test/parallel/test-tls-ticket-cluster.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-ticket.js b/test/parallel/test-tls-ticket.js index ed776100026..0e43ffaeaea 100644 --- a/test/parallel/test-tls-ticket.js +++ b/test/parallel/test-tls-ticket.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 29cce0f6af8..44847e05731 100644 --- a/test/parallel/test-tls-timeout-server-2.js +++ b/test/parallel/test-tls-timeout-server-2.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-timeout-server.js b/test/parallel/test-tls-timeout-server.js index e3ed2463866..20cd2aa7207 100644 --- a/test/parallel/test-tls-timeout-server.js +++ b/test/parallel/test-tls-timeout-server.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tls-wrap-timeout.js b/test/parallel/test-tls-wrap-timeout.js index d9e260f99e7..c260a03bf37 100644 --- a/test/parallel/test-tls-wrap-timeout.js +++ b/test/parallel/test-tls-wrap-timeout.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 652d6d176d7..7b50bbd81e7 100644 --- a/test/parallel/test-tls-zero-clear-in.js +++ b/test/parallel/test-tls-zero-clear-in.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/parallel/test-tty-wrap.js b/test/parallel/test-tty-wrap.js index 5e124dc89f7..c307c46c2fc 100644 --- a/test/parallel/test-tty-wrap.js +++ b/test/parallel/test-tty-wrap.js @@ -1,12 +1,12 @@ 'use strict'; -require('../common'); +const common = require('../common'); var assert = require('assert'); var TTY = process.binding('tty_wrap').TTY; var isTTY = process.binding('tty_wrap').isTTY; if (isTTY(1) == false) { - console.log('1..0 # Skipped: fd 1 is not a tty.'); + common.skip('fd 1 is not a tty.'); return; } diff --git a/test/parallel/test-zlib-random-byte-pipes.js b/test/parallel/test-zlib-random-byte-pipes.js index 4b28b387180..286f47bf114 100644 --- a/test/parallel/test-zlib-random-byte-pipes.js +++ b/test/parallel/test-zlib-random-byte-pipes.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/pummel/test-abort-fatal-error.js b/test/pummel/test-abort-fatal-error.js index 20d5c137d53..f84440b9270 100644 --- a/test/pummel/test-abort-fatal-error.js +++ b/test/pummel/test-abort-fatal-error.js @@ -3,7 +3,7 @@ var assert = require('assert'); var common = require('../common'); if (common.isWindows) { - console.log('1..0 # Skipped: no RLIMIT_NOFILE on Windows'); + common.skip('no RLIMIT_NOFILE on Windows'); return; } diff --git a/test/pummel/test-crypto-dh.js b/test/pummel/test-crypto-dh.js index d4e1c493b72..dfef8c6a657 100644 --- a/test/pummel/test-crypto-dh.js +++ b/test/pummel/test-crypto-dh.js @@ -5,7 +5,7 @@ const assert = require('assert'); try { var crypto = require('crypto'); } catch (e) { - console.log('1..0 # Skipped: node compiled without OpenSSL.'); + common.skip('node compiled without OpenSSL.'); return; } diff --git a/test/pummel/test-dh-regr.js b/test/pummel/test-dh-regr.js index e6b2f82bd9e..3ebf8d44382 100644 --- a/test/pummel/test-dh-regr.js +++ b/test/pummel/test-dh-regr.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var crypto = require('crypto'); diff --git a/test/pummel/test-dtrace-jsstack.js b/test/pummel/test-dtrace-jsstack.js index f53c950baa3..b50794bd7b7 100644 --- a/test/pummel/test-dtrace-jsstack.js +++ b/test/pummel/test-dtrace-jsstack.js @@ -1,10 +1,10 @@ 'use strict'; -require('../common'); +const common = require('../common'); var assert = require('assert'); var os = require('os'); if (os.type() != 'SunOS') { - console.log('1..0 # Skipped: no DTRACE support'); + common.skip('no DTRACE support'); return; } @@ -80,4 +80,3 @@ dtrace.on('exit', function(code) { }); setTimeout(doogle, 10); - diff --git a/test/pummel/test-https-ci-reneg-attack.js b/test/pummel/test-https-ci-reneg-attack.js index 05622c896e4..701963606e6 100644 --- a/test/pummel/test-https-ci-reneg-attack.js +++ b/test/pummel/test-https-ci-reneg-attack.js @@ -4,7 +4,7 @@ var assert = require('assert'); var spawn = require('child_process').spawn; if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); @@ -13,7 +13,7 @@ var https = require('https'); var fs = require('fs'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } diff --git a/test/pummel/test-https-large-response.js b/test/pummel/test-https-large-response.js index 1979c6737f7..36d8e368709 100644 --- a/test/pummel/test-https-large-response.js +++ b/test/pummel/test-https-large-response.js @@ -5,7 +5,7 @@ var assert = require('assert'); var fs = require('fs'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/pummel/test-https-no-reader.js b/test/pummel/test-https-no-reader.js index d9d2b64cc73..0e48ebfc103 100644 --- a/test/pummel/test-https-no-reader.js +++ b/test/pummel/test-https-no-reader.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var https = require('https'); diff --git a/test/pummel/test-keep-alive.js b/test/pummel/test-keep-alive.js index 46190555b27..1861b2df970 100644 --- a/test/pummel/test-keep-alive.js +++ b/test/pummel/test-keep-alive.js @@ -8,7 +8,7 @@ var http = require('http'); var url = require('url'); if (common.isWindows) { - console.log('1..0 # Skipped: no `wrk` on windows'); + common.skip('no `wrk` on windows'); return; } diff --git a/test/pummel/test-regress-GH-892.js b/test/pummel/test-regress-GH-892.js index 11cab1b8b62..8bbf3c8f1a0 100644 --- a/test/pummel/test-regress-GH-892.js +++ b/test/pummel/test-regress-GH-892.js @@ -10,7 +10,7 @@ var assert = require('assert'); var spawn = require('child_process').spawn; if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); 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 3fad5e6a4e7..b62b8944357 100644 --- a/test/pummel/test-tls-ci-reneg-attack.js +++ b/test/pummel/test-tls-ci-reneg-attack.js @@ -4,7 +4,7 @@ var assert = require('assert'); var spawn = require('child_process').spawn; if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); @@ -12,7 +12,7 @@ var tls = require('tls'); var fs = require('fs'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } diff --git a/test/pummel/test-tls-connect-memleak.js b/test/pummel/test-tls-connect-memleak.js index b8ddc78fab6..3b6cf203cd8 100644 --- a/test/pummel/test-tls-connect-memleak.js +++ b/test/pummel/test-tls-connect-memleak.js @@ -5,7 +5,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/pummel/test-tls-securepair-client.js b/test/pummel/test-tls-securepair-client.js index 3d33ef8f216..5dd2af65b2b 100644 --- a/test/pummel/test-tls-securepair-client.js +++ b/test/pummel/test-tls-securepair-client.js @@ -4,12 +4,12 @@ var common = require('../common'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/pummel/test-tls-server-large-request.js b/test/pummel/test-tls-server-large-request.js index cb740c63ed7..cd201a0aa71 100644 --- a/test/pummel/test-tls-server-large-request.js +++ b/test/pummel/test-tls-server-large-request.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/pummel/test-tls-session-timeout.js b/test/pummel/test-tls-session-timeout.js index 64548e20434..225d743eb8a 100644 --- a/test/pummel/test-tls-session-timeout.js +++ b/test/pummel/test-tls-session-timeout.js @@ -2,12 +2,12 @@ var common = require('../common'); if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } diff --git a/test/pummel/test-tls-throttle.js b/test/pummel/test-tls-throttle.js index 0e5cd455c8c..d80544eae61 100644 --- a/test/pummel/test-tls-throttle.js +++ b/test/pummel/test-tls-throttle.js @@ -6,7 +6,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); diff --git a/test/sequential/test-child-process-emfile.js b/test/sequential/test-child-process-emfile.js index 2ac0b6c0b23..f186db54016 100644 --- a/test/sequential/test-child-process-emfile.js +++ b/test/sequential/test-child-process-emfile.js @@ -5,7 +5,7 @@ const child_process = require('child_process'); const fs = require('fs'); if (common.isWindows) { - console.log('1..0 # Skipped: no RLIMIT_NOFILE on Windows'); + common.skip('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 ddc65c2df2b..b49a94d8560 100644 --- a/test/sequential/test-net-server-address.js +++ b/test/sequential/test-net-server-address.js @@ -20,7 +20,7 @@ server_ipv4.listen(common.PORT, common.localhostIPv4, function() { }); if (!common.hasIPv6) { - console.log('1..0 # Skipped: ipv6 part of test, no IPv6 support'); + common.skip('ipv6 part of test, no IPv6 support'); return; }