Home
last modified time | relevance | path

Searched refs:spawn (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/third_party/node/test/parallel/
Dtest-child-process-spawn-typeerror.js25 const { spawn, fork, execFile } = require('child_process');
43 spawn(invalidcmd, 'this is not an array');
47 spawn(cmd);
48 spawn(cmd, []);
49 spawn(cmd, {});
50 spawn(cmd, [], {});
54 spawn();
58 spawn('');
63 spawn(file);
67 spawn(cmd, true);
[all …]
Dtest-child-process-double-pipe.js30 const spawn = require('child_process').spawn; constant
39 grep = spawn('grep', ['--binary', 'o']);
40 sed = spawn('sed', ['--binary', 's/o/O/']);
41 echo = spawn('cmd.exe',
45 grep = spawn('grep', ['o']);
46 sed = spawn('sed', ['s/o/O/']);
47 echo = spawn('echo', ['hello\nnode\nand\nworld\n']);
Dtest-child-process-spawn-controller.js5 const { spawn } = require('child_process');
14 const cp = spawn(process.execPath, [aliveScript], {
34 const cp = spawn(process.execPath, [aliveScript], {
55 const cp = spawn(process.execPath, [aliveScript], {
76 const cp = spawn(process.execPath, [aliveScript], {
93 const cp = spawn(process.execPath, [aliveScript], {
110 const cp = spawn(process.execPath, [aliveScript], {
129 const cp = spawn(process.execPath, [aliveScript], {
150 const cp = spawn(process.execPath, [aliveScript], {
172 const cp = spawn(process.execPath, [aliveScript], {
Dtest-child-process-spawn-timeout-kill-signal.js6 const { spawn } = require('child_process');
12 const cp = spawn(process.execPath, [fixtures.path(aliveForeverFile)], {
20 const cp = spawn(process.execPath, [fixtures.path(aliveForeverFile)], {
29 throws(() => spawn(process.execPath, [fixtures.path(aliveForeverFile)], {
33 throws(() => spawn(process.execPath, [fixtures.path(aliveForeverFile)], {
42 const cp = spawn(process.execPath, [fixtures.path(aliveForeverFile)], {
Dtest-child-process-stdio.js25 const { spawn } = require('child_process');
29 const child = spawn(...common.pwdCommand, { stdio: ['pipe'] });
36 const child = spawn(...common.pwdCommand, { stdio: 'ignore' });
44 spawn(...common.pwdCommand, options);
51 const child = spawn(...common.pwdCommand);
71 spawn(
Dtest-child-process-reject-null-bytes.js13 spawn,
41 throws(() => spawn('BBB\0XXX'), {
56 throws(() => spawn('BBB\0XXX'), {
93 throws(() => spawn(process.execPath, [__filename, 'AAA', 'BBB\0XXX', 'CCC']), {
130 throws(() => spawn(process.execPath, { cwd: 'BBB\0XXX' }), {
167 throws(() => spawn(process.execPath, { argv0: 'BBB\0XXX' }), {
202 throws(() => spawn(process.execPath, { shell: 'BBB\0XXX' }), {
264 throws(() => spawn(process.execPath, { env: { 'AAA': 'BBB\0XXX' } }), {
269 throws(() => spawn(process.execPath, { env: { 'BBB\0XXX': 'AAA' } }), {
Dtest-child-process-spawnsync-kill-signal.js14 function spawn(killSignal, beforeSpawn) { function
33 spawn('SIG_NOT_A_REAL_SIGNAL');
38 const child = spawn(undefined, (opts) => {
47 const child = spawn('SIGKILL', (opts) => {
58 const child = spawn(SIGKILL, (opts) => {
Dtest-child-process-constructor.js14 child.spawn(options);
30 child.spawn({ file });
46 child.spawn({ envPairs, stdio: ['ignore', 'ignore', 'ignore', 'ipc'] });
62 child.spawn({ file: 'foo', args });
74 child.spawn({
Dtest-child-process-uid-gid.js4 const spawn = require('child_process').spawn; constant
12 spawn('echo', ['fhqwhgads'], { uid: 0 });
18 spawn('echo', ['fhqwhgads'], { gid: 0 });
Dtest-child-process-pipe-dataflow.js12 const spawn = require('child_process').spawn; constant
39 cat = spawn('cat', [file]);
40 grep = spawn('grep', ['x'], { stdio: [cat.stdout, 'pipe', 'pipe'] });
41 wc = spawn('wc', ['-c'], { stdio: [grep.stdout, 'pipe', 'pipe'] });
Dtest-child-process-default-options.js26 const spawn = require('child_process').spawn; constant
33 child = spawn('cmd.exe', ['/c', 'set'], {});
35 child = spawn('/usr/bin/env', [], {});
Dtest-child-process-exit-code.js25 const spawn = require('child_process').spawn; constant
29 const exitChild = spawn(process.argv[0], [exitScript, 23]);
37 const errorChild = spawn(process.argv[0], [errorScript]);
Dtest-set-http-max-http-headers.js5 const { spawn } = require('child_process');
24 const cp = spawn(process.execPath, args, { stdio: 'inherit' });
45 const cp = spawn(process.execPath, args, {
68 const cp = spawn(process.execPath, args, { env, stdio: 'inherit' });
80 const cp = spawn(process.execPath, args, { env, stdio: 'inherit' });
Dtest-child-process-stdio-inherit.js25 const spawn = require('child_process').spawn; constant
33 const child = spawn(process.execPath, [__filename, 'parent']);
55 spawn('cat', [], { stdio: 'inherit' });
Dtest-child-process-stdio-merge-stdouts-into-cat.js4 const { spawn } = require('child_process');
9 const p3 = spawn('cat', { stdio: ['pipe', 'pipe', 'inherit'] });
10 const p1 = spawn('cat', { stdio: ['pipe', p3.stdin, 'inherit'] });
11 const p2 = spawn('cat', { stdio: ['pipe', p3.stdin, 'inherit'] });
Dtest-stdio-pipe-redirect.js8 const spawn = require('child_process').spawn; constant
17 const consumer = spawn(process.argv0, [process.argv[1], 'consumer'], {
20 const producer = spawn(process.argv0, [process.argv[1], 'producer'], {
Dtest-stdio-closed.js4 const spawn = require('child_process').spawn; constant
19 const proc = spawn(python, [script, process.execPath, __filename, 'child']);
33 const proc = spawn('/bin/sh', ['-c', cmd], { stdio: 'inherit' });
Dtest-process-exec-argv.js25 const spawn = require('child_process').spawn; constant
41 child = spawn(process.execPath, [...execArgv, ...extra, ...args]);
50 child = spawn(process.execPath, [...execArgv, ...args]);
Dtest-common-expect-warning.js5 const { spawn } = require('child_process');
10 const child = spawn(
20 const child = spawn(
30 const child = spawn(
Dtest-child-process-env.js32 const spawn = require('child_process').spawn; constant
49 child = spawn('cmd.exe', ['/c', 'set'], { env });
51 child = spawn('/usr/bin/env', [], { env });
/third_party/node/deps/npm/test/lib/commands/
Dedit.js39 spawk.spawn('testeditor', [semverPath])
45 spawk.spawn(scriptShell, scriptArgs, { cwd: semverPath })
55 spawk.spawn('testeditor', [semverPath])
61 spawk.spawn(scriptShell, scriptArgs, { cwd: semverPath }).exit(1).stdout('test error')
72 spawk.spawn('testeditor', [semverPath]).exit(1).stdout('test editor failure')
90 spawk.spawn('testeditor', ['--flag', semverPath])
96 spawk.spawn(scriptShell, scriptArgs, { cwd: semverPath })
122 spawk.spawn('testeditor', [scopedPath])
129 spawk.spawn('testeditor', [subdepPath])
/third_party/node/deps/npm/node_modules/cross-spawn/
Dindex.js7 function spawn(command, args, options) { function
12 const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
34 module.exports = spawn;
35 module.exports.spawn = spawn;
/third_party/python/Lib/distutils/tests/
Dtest_spawn.py9 from distutils.spawn import find_executable
10 from distutils.spawn import spawn
33 self.assertRaises(DistutilsExecError, spawn, [exe])
44 spawn([exe]) # should work without any error
129 spawn(['does-not-exist'])
/third_party/node/deps/npm/node_modules/@npmcli/git/lib/
Dclone.js26 const spawn = require('./spawn.js') constant
94 const git = (args) => spawn(args, { ...opts, cwd: target })
123 return spawn(args, opts).then(() => revDoc.sha)
140 return spawn(args, opts).then(() => revDoc.sha)
150 return spawn([
164 const git = (args) => spawn(args, { ...opts, cwd: target })
/third_party/libuv/test/
Dbenchmark-spawn.c47 static void spawn(void);
54 spawn(); in maybe_spawn()
103 static void spawn(void) { in spawn() function
137 BENCHMARK_IMPL(spawn) { in BENCHMARK_IMPL() argument
150 spawn(); in BENCHMARK_IMPL()

12345678910>>...21