summaryrefslogtreecommitdiffstats
path: root/node_modules/pstree.remy/tests/fixtures/index.js
blob: 4cdbcb1b324cb2cf85ead43f535b15a2188ae622 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
const spawn = require('child_process').spawn;
function run() {
  spawn(
    'sh',
    ['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'],
    {
      stdio: 'pipe',
    }
  );
}

var runCallCount = process.argv[2] || 1;
for (var i = 0; i < runCallCount; i++) run();