Browse Source

test: abstract skip functionality to common

The tap skipping output is so prevalent yet obscure in nature that we
ought to move it into it's own function in test/common.js

Re-do of 52bae222a3 for v4.x

Ref: https://github.com/nodejs/node/pull/6697
PR-URL: https://github.com/nodejs/node/pull/7114
Reviewed-By: Myles Borins <myles.borins@gmail.com>
v4.x
Jeremiah Senkpiel 9 years ago
committed by Myles Borins
parent
commit
4067cde7ee
  1. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js
  2. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js
  3. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js
  4. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js
  5. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js
  6. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js
  7. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js
  8. 9
      test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js
  9. 4
      test/common.js
  10. 2
      test/disabled/tls_server.js
  11. 2
      test/internet/test-dgram-broadcast-multi-process.js
  12. 2
      test/internet/test-dgram-multicast-multi-process.js
  13. 2
      test/internet/test-dns-ipv6.js
  14. 2
      test/internet/test-http-https-default-ports.js
  15. 2
      test/internet/test-tls-connnect-cnnic.js
  16. 2
      test/internet/test-tls-connnect-melissadata.js
  17. 2
      test/internet/test-tls-reuse-host-from-socket.js
  18. 2
      test/parallel/test-buffer.js
  19. 2
      test/parallel/test-child-process-fork-dgram.js
  20. 4
      test/parallel/test-cluster-bind-privileged-port.js
  21. 2
      test/parallel/test-cluster-dgram-1.js
  22. 2
      test/parallel/test-cluster-dgram-2.js
  23. 2
      test/parallel/test-cluster-dgram-reuse.js
  24. 2
      test/parallel/test-cluster-disconnect-handles.js
  25. 2
      test/parallel/test-cluster-disconnect-race.js
  26. 2
      test/parallel/test-cluster-disconnect-unshared-udp.js
  27. 2
      test/parallel/test-cluster-http-pipe.js
  28. 4
      test/parallel/test-cluster-shared-handle-bind-privileged-port.js
  29. 4
      test/parallel/test-crypto-authenticated.js
  30. 2
      test/parallel/test-crypto-binary-default.js
  31. 2
      test/parallel/test-crypto-certificate.js
  32. 4
      test/parallel/test-crypto-cipher-decipher.js
  33. 2
      test/parallel/test-crypto-cipheriv-decipheriv.js
  34. 2
      test/parallel/test-crypto-dh-odd-key.js
  35. 2
      test/parallel/test-crypto-dh.js
  36. 2
      test/parallel/test-crypto-domain.js
  37. 2
      test/parallel/test-crypto-domains.js
  38. 4
      test/parallel/test-crypto-ecb.js
  39. 2
      test/parallel/test-crypto-from-binary.js
  40. 2
      test/parallel/test-crypto-hash-stream-pipe.js
  41. 2
      test/parallel/test-crypto-hash.js
  42. 2
      test/parallel/test-crypto-hmac.js
  43. 2
      test/parallel/test-crypto-padding-aes256.js
  44. 2
      test/parallel/test-crypto-padding.js
  45. 2
      test/parallel/test-crypto-pbkdf2.js
  46. 2
      test/parallel/test-crypto-random.js
  47. 2
      test/parallel/test-crypto-rsa-dsa.js
  48. 2
      test/parallel/test-crypto-sign-verify.js
  49. 2
      test/parallel/test-crypto-stream.js
  50. 2
      test/parallel/test-crypto-verify-failure.js
  51. 2
      test/parallel/test-crypto.js
  52. 2
      test/parallel/test-cwd-enoent-preload.js
  53. 2
      test/parallel/test-cwd-enoent-repl.js
  54. 2
      test/parallel/test-cwd-enoent.js
  55. 4
      test/parallel/test-dgram-bind-default-address.js
  56. 2
      test/parallel/test-dgram-empty-packet.js
  57. 2
      test/parallel/test-dgram-send-empty-buffer.js
  58. 4
      test/parallel/test-dh-padding.js
  59. 6
      test/parallel/test-domain-crypto.js
  60. 2
      test/parallel/test-dsa-fips-invalid-key.js
  61. 2
      test/parallel/test-fs-long-path.js
  62. 2
      test/parallel/test-fs-readfile-error.js
  63. 2
      test/parallel/test-fs-readfile-pipe-large.js
  64. 2
      test/parallel/test-fs-readfile-pipe.js
  65. 2
      test/parallel/test-fs-readfilesync-pipe-large.js
  66. 16
      test/parallel/test-fs-realpath.js
  67. 2
      test/parallel/test-fs-symlink.js
  68. 2
      test/parallel/test-fs-watch-recursive.js
  69. 2
      test/parallel/test-http-chunk-problem.js
  70. 2
      test/parallel/test-http-default-port.js
  71. 4
      test/parallel/test-http-dns-error.js
  72. 2
      test/parallel/test-http-full-response.js
  73. 2
      test/parallel/test-http-localaddress.js
  74. 2
      test/parallel/test-http-url.parse-https.request.js
  75. 2
      test/parallel/test-https-agent-servername.js
  76. 2
      test/parallel/test-https-agent-session-eviction.js
  77. 2
      test/parallel/test-https-agent-session-reuse.js
  78. 2
      test/parallel/test-https-agent-sni.js
  79. 2
      test/parallel/test-https-agent.js
  80. 2
      test/parallel/test-https-byteswritten.js
  81. 2
      test/parallel/test-https-client-checkServerIdentity.js
  82. 2
      test/parallel/test-https-client-get-url.js
  83. 2
      test/parallel/test-https-client-reject.js
  84. 2
      test/parallel/test-https-client-resume.js
  85. 2
      test/parallel/test-https-close.js
  86. 2
      test/parallel/test-https-connecting-to-http.js
  87. 2
      test/parallel/test-https-drain.js
  88. 2
      test/parallel/test-https-eof-for-eom.js
  89. 4
      test/parallel/test-https-foafssl.js
  90. 2
      test/parallel/test-https-host-headers.js
  91. 2
      test/parallel/test-https-localaddress-bind-error.js
  92. 4
      test/parallel/test-https-localaddress.js
  93. 2
      test/parallel/test-https-pfx.js
  94. 2
      test/parallel/test-https-req-split.js
  95. 2
      test/parallel/test-https-set-timeout-server.js
  96. 2
      test/parallel/test-https-simple.js
  97. 2
      test/parallel/test-https-socket-options.js
  98. 2
      test/parallel/test-https-strict.js
  99. 2
      test/parallel/test-https-timeout-server-2.js
  100. 2
      test/parallel/test-https-timeout-server.js

9
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;
}

9
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;
}

9
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;
}

9
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;
}

9
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;
}

9
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;
}

9
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;
}

9
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;
}

4
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.

2
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;

2
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;
}

2
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;
}

2
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;
}

2
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');

2
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;
}

2
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;
}

2
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');

2
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

2
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;
}

4
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;
}

2
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;
}

2
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;
}

2
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;
}

2
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;
}

2
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;
}

2
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;
}

2
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;
}

4
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;
}

4
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;
}

2
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');

2
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');

4
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');

2
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');

2
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');

2
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');

2
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');

2
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');

4
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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;
}

2
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;
}

2
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;
}

4
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;
}

2
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;
}

2
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;
}

4
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;
}

6
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');

2
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;
}

2
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;
}

2
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;
}

2
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;
}

2
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;
}

2
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;
}

16
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() {

2
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;
}
});

2
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;
}

2
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;
}

2
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() {

4
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);

2
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();

2
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;
}

2
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');

2
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;
}

2
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;
}

2
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;
}

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

2
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');

4
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');

2
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');

2
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');

4
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;
}

2
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');

2
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');

2
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');

2
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;
}

2
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');

2
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');

2
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');

2
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');

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save