diff options
author | cjihrig <cjihrig@gmail.com> | 2018-12-29 19:53:03 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-01-04 09:14:35 -0500 |
commit | d4934ae6f2745f8fab1a83821f50290c9688c326 (patch) | |
tree | 09b3f7ffc01e608d35b805096e3d685afaff3d06 /test | |
parent | 7d453ff21294bc9dcf7c9a61b1a07c3a15a021ce (diff) | |
download | android-node-v8-d4934ae6f2745f8fab1a83821f50290c9688c326.tar.gz android-node-v8-d4934ae6f2745f8fab1a83821f50290c9688c326.tar.bz2 android-node-v8-d4934ae6f2745f8fab1a83821f50290c9688c326.zip |
lib: move DEP0006 to end of life
This commit moves DEP0006, which has been runtime deprecated
since Node 0.11, to end of life status.
PR-URL: https://github.com/nodejs/node/pull/25279
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-child-process-custom-fds.js | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/parallel/test-child-process-custom-fds.js b/test/parallel/test-child-process-custom-fds.js deleted file mode 100644 index 1c89c207d3..0000000000 --- a/test/parallel/test-child-process-custom-fds.js +++ /dev/null @@ -1,47 +0,0 @@ -// Flags: --expose_internals -'use strict'; -const common = require('../common'); -const assert = require('assert'); -const { spawnSync } = require('child_process'); -const internalCp = require('internal/child_process'); - -if (!common.isMainThread) - common.skip('stdio is not associated with file descriptors in Workers'); - -// This test uses the deprecated `customFds` option. We expect a deprecation -// warning, but only once (per node process). -const msg = 'child_process: options.customFds option is deprecated. ' + - 'Use options.stdio instead.'; -common.expectWarning('DeprecationWarning', msg, 'DEP0006'); - -// Verify that customFds is used if stdio is not provided. -{ - const customFds = [-1, process.stdout.fd, process.stderr.fd]; - const oldSpawnSync = internalCp.spawnSync; - internalCp.spawnSync = common.mustCall(function(opts) { - assert.deepStrictEqual(opts.options.customFds, customFds); - assert.deepStrictEqual(opts.options.stdio, [ - { type: 'pipe', readable: true, writable: false }, - { type: 'fd', fd: process.stdout.fd }, - { type: 'fd', fd: process.stderr.fd } - ]); - }); - spawnSync(...common.pwdCommand, { customFds }); - internalCp.spawnSync = oldSpawnSync; -} - -// Verify that customFds is ignored when stdio is present. -{ - const customFds = [0, 1, 2]; - const oldSpawnSync = internalCp.spawnSync; - internalCp.spawnSync = common.mustCall(function(opts) { - assert.deepStrictEqual(opts.options.customFds, customFds); - assert.deepStrictEqual(opts.options.stdio, [ - { type: 'pipe', readable: true, writable: false }, - { type: 'pipe', readable: false, writable: true }, - { type: 'pipe', readable: false, writable: true } - ]); - }); - spawnSync(...common.pwdCommand, { customFds, stdio: 'pipe' }); - internalCp.spawnSync = oldSpawnSync; -} |