diff options
-rw-r--r-- | test/ufuzz/job.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/ufuzz/job.js b/test/ufuzz/job.js index e4d9ece7..20f6ee0e 100644 --- a/test/ufuzz/job.js +++ b/test/ufuzz/job.js @@ -57,7 +57,13 @@ function run() { function respawn() { console.log(stdout.replace(/[^\r\n]*\r/g, "")); clearInterval(log); - if (!iterations) spawn(); + if (!iterations) { + spawn(); + } else if (process.exitCode) { + tasks.forEach(function(kill) { + kill(); + }); + } } function trap(data) { |