test: add ChildProcess.prototype.killed test case
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 2 Nov 2011 17:37:34 +0000 (18:37 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 2 Nov 2011 17:37:34 +0000 (18:37 +0100)
test/simple/test-child-process-kill.js

index 05599f48d2febfe0beaee3a4099b001fab27c8d9..1522367ef82707c03a83a568344a3db385acd081 100644 (file)
@@ -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);