git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-50-spawn / test-exec-1.js

542 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5// AppVeyor: unquoted execPath inside 'Program Files'
6if (process.platform === 'win32') return;
7var exec = require('child_process').exec;
8
9var child = exec(
10 process.execPath + ' ' + [
11 require.resolve('./test-exec-child.js'), 'argvx', '--argvy'
12 ].join(' ')
13 // leave without callback for coverage
14);
15
16child.stdout.pipe(process.stdout);
17child.stderr.pipe(process.stderr);
18
19child.on('exit', function (code) {
20 setTimeout(function () {
21 console.log('Child exited with code', code);
22 }, 100);
23});
24

Built with git-ssb-web