~ubuntu-branches/ubuntu/trusty/nodejs/trusty-proposed

« back to all changes in this revision

Viewing changes to test/simple/test-process-kill-null.js

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-12-12 23:04:07 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20131212230407-xfa6gka4c6oatsx1
Tags: 0.10.23~dfsg1-1
* Upstream update.
* Refresh patches, remove 1005 patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
var cat = spawn('cat');
28
28
var called;
29
29
 
30
 
process.kill(cat.pid, 0);
 
30
assert.ok(process.kill(cat.pid, 0));
 
31
 
 
32
cat.on('exit', function() {
 
33
  assert.throws(function() {
 
34
    process.kill(cat.pid, 0);
 
35
  }, Error);
 
36
});
31
37
 
32
38
cat.stdout.on('data', function() {
33
39
  called = true;