From c8646e0c4159aa53b2ae94d1b69850ce5fa62ca2 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 2 Nov 2011 18:37:34 +0100 Subject: [PATCH] test: add ChildProcess.prototype.killed test case --- test/simple/test-child-process-kill.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/simple/test-child-process-kill.js b/test/simple/test-child-process-kill.js index 05599f48d2f..1522367ef82 100644 --- a/test/simple/test-child-process-kill.js +++ b/test/simple/test-child-process-kill.js @@ -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);