git ssb

0+

cel-desktop / ssb-pkg



Tree: 4c58f1c6c3ddb86a97f27f0c84681d201ef1f75f

Files: 4c58f1c6c3ddb86a97f27f0c84681d201ef1f75f / 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