GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: abstract skip functionality to common · nodejs/node@4067cde

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • addons/stringbytes-external-exceed-max
      • test-stringbytes-external-at-max.js
      • test-stringbytes-external-exceed-max-by-1-ascii.js
      • test-stringbytes-external-exceed-max-by-1-base64.js
      • test-stringbytes-external-exceed-max-by-1-binary.js
      • test-stringbytes-external-exceed-max-by-1-hex.js
      • test-stringbytes-external-exceed-max-by-1-utf8.js
      • test-stringbytes-external-exceed-max-by-2.js
      • test-stringbytes-external-exceed-max.js
    • common.js
    • disabled
      • tls_server.js
    • internet
      • test-dgram-broadcast-multi-process.js
      • test-dgram-multicast-multi-process.js
      • test-dns-ipv6.js
      • test-http-https-default-ports.js
      • test-tls-connnect-cnnic.js
      • test-tls-connnect-melissadata.js
      • test-tls-reuse-host-from-socket.js
    • parallel
      • test-buffer.js
      • test-child-process-fork-dgram.js
      • test-cluster-bind-privileged-port.js
      • test-cluster-dgram-1.js
      • test-cluster-dgram-2.js
      • test-cluster-dgram-reuse.js
      • test-cluster-disconnect-handles.js
      • test-cluster-disconnect-race.js
      • test-cluster-disconnect-unshared-udp.js
      • test-cluster-http-pipe.js
      • test-cluster-shared-handle-bind-privileged-port.js
      • test-crypto-authenticated.js
      • test-crypto-binary-default.js
      • test-crypto-certificate.js
      • test-crypto-cipher-decipher.js
      • test-crypto-cipheriv-decipheriv.js
      • test-crypto-dh-odd-key.js
      • test-crypto-dh.js
      • test-crypto-domain.js
      • test-crypto-domains.js
      • test-crypto-ecb.js
      • test-crypto-from-binary.js
      • test-crypto-hash-stream-pipe.js
      • test-crypto-hash.js
      • test-crypto-hmac.js
      • test-crypto-padding-aes256.js
      • test-crypto-padding.js
      • test-crypto-pbkdf2.js
      • test-crypto-random.js
      • test-crypto-rsa-dsa.js
      • test-crypto-sign-verify.js
      • test-crypto-stream.js
      • test-crypto-verify-failure.js
      • test-crypto.js
      • test-cwd-enoent-preload.js
      • test-cwd-enoent-repl.js
      • test-cwd-enoent.js
      • test-dgram-bind-default-address.js
      • test-dgram-empty-packet.js
      • test-dgram-send-empty-buffer.js
      • test-dh-padding.js
      • test-domain-crypto.js
      • test-dsa-fips-invalid-key.js
      • test-fs-long-path.js
      • test-fs-readfile-error.js
      • test-fs-readfile-pipe-large.js
      • test-fs-readfile-pipe.js
      • test-fs-readfilesync-pipe-large.js
      • test-fs-realpath.js
      • test-fs-symlink.js
      • test-fs-watch-recursive.js
      • test-http-chunk-problem.js
      • test-http-default-port.js
      • test-http-dns-error.js
      • test-http-full-response.js
      • test-http-localaddress.js
      • test-http-url.parse-https.request.js
      • test-https-agent-servername.js
      • test-https-agent-session-eviction.js
      • test-https-agent-session-reuse.js
      • test-https-agent-sni.js
      • test-https-agent.js
      • test-https-byteswritten.js
      • test-https-client-checkServerIdentity.js
      • test-https-client-get-url.js
      • test-https-client-reject.js
      • test-https-client-resume.js
      • test-https-close.js
      • test-https-connecting-to-http.js
      • test-https-drain.js
      • test-https-eof-for-eom.js
      • test-https-foafssl.js
      • test-https-host-headers.js
      • test-https-localaddress-bind-error.js
      • test-https-localaddress.js
      • test-https-pfx.js
      • test-https-req-split.js
      • test-https-set-timeout-server.js
      • test-https-simple.js
      • test-https-socket-options.js
      • test-https-strict.js
      • test-https-timeout-server-2.js
      • test-https-timeout-server.js
      • test-https-timeout.js
      • test-https-truncate.js
      • test-intl.js
      • test-listen-fd-cluster.js
      • test-listen-fd-detached-inherit.js
      • test-listen-fd-detached.js
      • test-listen-fd-server.js
      • test-module-loading-error.js
      • test-net-connect-options-ipv6.js
      • test-net-socket-local-address.js
      • test-process-getgroups.js
      • test-process-remove-all-signal-listeners.js
      • test-regress-GH-1531.js
      • test-regress-GH-3542.js
      • test-repl-history-perm.js
      • test-require-long-path.js
      • test-setproctitle.js
      • test-signal-handler.js
      • test-spawn-cmd-named-pipe.js
      • test-stdio-closed.js
      • test-stream2-unpipe-drain.js
      • test-tick-processor.js
      • test-tls-0-dns-altname.js
      • test-tls-alert-handling.js
      • test-tls-alert.js
      • test-tls-async-cb-after-socket-end.js
      • test-tls-cert-regression.js
      • test-tls-check-server-identity.js
      • test-tls-cipher-list.js
      • test-tls-client-abort.js
      • test-tls-client-abort2.js
      • test-tls-client-default-ciphers.js
      • test-tls-client-destroy-soon.js
      • test-tls-client-reject.js
      • test-tls-client-resume.js
      • test-tls-client-verify.js
      • test-tls-close-error.js
      • test-tls-close-notify.js
      • test-tls-cnnic-whitelist.js
      • test-tls-connect-given-socket.js
      • test-tls-connect-no-host.js
      • test-tls-connect-pipe.js
      • test-tls-connect-simple.js
      • test-tls-connect.js
      • test-tls-delayed-attach-error.js
      • test-tls-delayed-attach.js
      • test-tls-destroy-whilst-write.js
      • test-tls-dhe.js
      • test-tls-ecdh-disable.js
      • test-tls-ecdh.js
      • test-tls-econnreset.js
      • test-tls-external-accessor.js
      • test-tls-fast-writing.js
      • test-tls-friendly-error-message.js
      • test-tls-getcipher.js
      • test-tls-handshake-error.js
      • test-tls-handshake-nohang.js
      • test-tls-hello-parser-failure.js
      • test-tls-honorcipherorder.js
      • test-tls-inception.js
      • test-tls-interleave.js
      • test-tls-invoke-queued.js
      • test-tls-js-stream.js
      • test-tls-junk-closes-server.js
      • test-tls-junk-server.js
      • test-tls-key-mismatch.js
      • test-tls-legacy-onselect.js
      • test-tls-max-send-fragment.js
      • test-tls-multi-key.js
      • test-tls-no-cert-required.js
      • test-tls-no-rsa-key.js
      • test-tls-no-sslv23.js
      • test-tls-no-sslv3.js
      • test-tls-npn-server-client.js
      • test-tls-ocsp-callback.js
      • test-tls-on-empty-socket.js
      • test-tls-over-http-tunnel.js
      • test-tls-passphrase.js
      • test-tls-pause.js
      • test-tls-peer-certificate-encoding.js
      • test-tls-peer-certificate-multi-keys.js
      • test-tls-peer-certificate.js
      • test-tls-pfx-gh-5100-regr.js
      • test-tls-regr-gh-5108.js
      • test-tls-request-timeout.js
      • test-tls-securepair-server.js
      • test-tls-server-connection-server.js
      • test-tls-server-verify.js
      • test-tls-session-cache.js
      • test-tls-set-ciphers.js
      • test-tls-set-encoding.js
      • test-tls-sni-option.js
      • test-tls-sni-server-client.js
      • test-tls-socket-default-options.js
      • test-tls-ticket-cluster.js
      • test-tls-ticket.js
      • test-tls-timeout-server-2.js
      • test-tls-timeout-server.js
      • test-tls-wrap-timeout.js
      • test-tls-zero-clear-in.js
      • test-tty-wrap.js
      • test-zlib-random-byte-pipes.js
    • pummel
      • test-abort-fatal-error.js
      • test-crypto-dh.js
      • test-dh-regr.js
      • test-dtrace-jsstack.js
      • test-https-ci-reneg-attack.js
      • test-https-large-response.js
      • test-https-no-reader.js
      • test-keep-alive.js
      • test-regress-GH-892.js
      • test-tls-ci-reneg-attack.js
      • test-tls-connect-memleak.js
      • test-tls-securepair-client.js
      • test-tls-server-large-request.js
      • test-tls-session-timeout.js
      • test-tls-throttle.js
    • sequential
      • test-child-process-emfile.js
      • test-net-server-address.js

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ const assert = require('assert');
88
// v8::String::kMaxLength defined in v8.h
99
const kStringMaxLength = process.binding('buffer').kStringMaxLength;
1010

11-
const skipMessage =
12-
'1..0 # Skipped: intensive toString tests due to memory confinements';
11+
const skipMessage = 'intensive toString tests due to memory confinements';
1312
if (!common.enoughTestMem) {
14-
console.log(skipMessage);
13+
common.skip(skipMessage);
1514
return;
1615
}
1716

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../../common');
44
const binding = require('./build/Release/binding');
55
const assert = require('assert');
66

7-
const skipMessage =
8-
'1..0 # Skipped: intensive toString tests due to memory confinements';
7+
const skipMessage = 'intensive toString tests due to memory confinements';
98
if (!common.enoughTestMem) {
10-
console.log(skipMessage);
9+
common.skip(skipMessage);
1110
return;
1211
}
1312

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../../common');
44
const binding = require('./build/Release/binding');
55
const assert = require('assert');
66

7-
const skipMessage =
8-
'1..0 # Skipped: intensive toString tests due to memory confinements';
7+
const skipMessage = 'intensive toString tests due to memory confinements';
98
if (!common.enoughTestMem) {
10-
console.log(skipMessage);
9+
common.skip(skipMessage);
1110
return;
1211
}
1312

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../../common');
44
const binding = require('./build/Release/binding');
55
const assert = require('assert');
66

7-
const skipMessage =
8-
'1..0 # Skipped: intensive toString tests due to memory confinements';
7+
const skipMessage = 'intensive toString tests due to memory confinements';
98
if (!common.enoughTestMem) {
10-
console.log(skipMessage);
9+
common.skip(skipMessage);
1110
return;
1211
}
1312

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../../common');
44
const binding = require('./build/Release/binding');
55
const assert = require('assert');
66

7-
const skipMessage =
8-
'1..0 # Skipped: intensive toString tests due to memory confinements';
7+
const skipMessage = 'intensive toString tests due to memory confinements';
98
if (!common.enoughTestMem) {
10-
console.log(skipMessage);
9+
common.skip(skipMessage);
1110
return;
1211
}
1312

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../../common');
44
const binding = require('./build/Release/binding');
55
const assert = require('assert');
66

7-
const skipMessage =
8-
'1..0 # Skipped: intensive toString tests due to memory confinements';
7+
const skipMessage = 'intensive toString tests due to memory confinements';
98
if (!common.enoughTestMem) {
10-
console.log(skipMessage);
9+
common.skip(skipMessage);
1110
return;
1211
}
1312

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../../common');
44
const binding = require('./build/Release/binding');
55
const assert = require('assert');
66

7-
const skipMessage =
8-
'1..0 # Skipped: intensive toString tests due to memory confinements';
7+
const skipMessage = 'intensive toString tests due to memory confinements';
98
if (!common.enoughTestMem) {
10-
console.log(skipMessage);
9+
common.skip(skipMessage);
1110
return;
1211
}
1312

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js‎

Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../../common');
44
const binding = require('./build/Release/binding');
55
const assert = require('assert');
66

7-
const skipMessage =
8-
'1..0 # Skipped: intensive toString tests due to memory confinements';
7+
const skipMessage = 'intensive toString tests due to memory confinements';
98
if (!common.enoughTestMem) {
10-
console.log(skipMessage);
9+
common.skip(skipMessage);
1110
return;
1211
}
1312

@@ -20,13 +19,13 @@ try {
2019
} catch (e) {
2120
// If the exception is not due to memory confinement then rethrow it.
2221
if (e.message !== 'Invalid array buffer length') throw (e);
23-
console.log(skipMessage);
22+
common.skip(skipMessage);
2423
return;
2524
}
2625

2726
// Ensure we have enough memory available for future allocations to succeed.
2827
if (!binding.ensureAllocation(2 * kStringMaxLength)) {
29-
console.log(skipMessage);
28+
common.skip(skipMessage);
3029
return;
3130
}
3231

Collapse file

‎test/common.js‎

Copy file name to clipboardExpand all lines: test/common.js
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ exports.fail = function(msg) {
459459
assert.fail(null, null, msg);
460460
};
461461

462+
exports.skip = function(msg) {
463+
console.log(`1..0 # Skipped: ${msg}`);
464+
};
465+
462466
// Returns true if the exit code "exitCode" and/or signal name "signal"
463467
// represent the exit code and/or signal name of a node process that aborted,
464468
// false otherwise.
Collapse file

‎test/disabled/tls_server.js‎

Copy file name to clipboardExpand all lines: test/disabled/tls_server.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var certPem = fs.readFileSync(common.fixturesDir + '/cert.pem');
1313
try {
1414
var credentials = crypto.createCredentials({key: keyPem, cert: certPem});
1515
} catch (e) {
16-
console.log('1..0 # Skipped: node compiled without OpenSSL.');
16+
common.skip('node compiled without OpenSSL.');
1717
return;
1818
}
1919
var i = 0;

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.