Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / test / test-50-spawn / test-spawn-d.js
387 bytesRaw
1 | |
2 | |
3 | 'use strict'; |
4 | |
5 | var pp = process.platform; |
6 | if (pp !== 'darwin' && pp !== 'linux') return; |
7 | var spawn = require('child_process').spawn; |
8 | |
9 | var child = spawn( |
10 | '/bin/bash', [ |
11 | '-c', 'node ' + require.resolve('./test-spawn-d-child.js') + ' argvx argvy' |
12 | ], { stdio: 'inherit' } |
13 | ); |
14 | |
15 | child.on('exit', function (code) { |
16 | console.log('Child exited with code', code); |
17 | }); |
18 |
Built with git-ssb-web