Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
test: add ChildProcess.prototype.killed test case
  • Loading branch information
bnoordhuis committed Nov 2, 2011
1 parent 6bd0bcd commit c8646e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/simple/test-child-process-kill.js
Expand Up @@ -58,7 +58,9 @@ cat.on('exit', function(code, signal) {
termSignal = signal;
});

assert.equal(cat.killed, false);
cat.kill();
assert.equal(cat.killed, true);

process.on('exit', function() {
assert.strictEqual(exitCode, null);
Expand Down

0 comments on commit c8646e0

Please sign in to comment.