~yolanda.robla/ubuntu/trusty/nodejs/add_distribution

« back to all changes in this revision

Viewing changes to test/simple/test-fs-open.js

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-08-14 00:16:46 UTC
  • mfrom: (7.1.40 sid)
  • Revision ID: package-import@ubuntu.com-20130814001646-bzlysfh8sd6mukbo
Tags: 0.10.15~dfsg1-4
* Update 2005 patch, adding a handful of tests that can fail on
  slow platforms.
* Add 1004 patch to fix test failures when writing NaN to buffer
  on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  if (err) {
42
42
    throw err;
43
43
  }
44
 
 
45
44
  openFd = fd;
46
45
});
47
46
 
 
47
var openFd2;
 
48
fs.open(__filename, 'rs', function(err, fd) {
 
49
  if (err) {
 
50
    throw err;
 
51
  }
 
52
  openFd2 = fd;
 
53
});
 
54
 
48
55
process.on('exit', function() {
49
56
  assert.ok(openFd);
 
57
  assert.ok(openFd2);
50
58
});
51
59