0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00
nodejs/test/test-file-open.js
Ryan a4593e3ebd WAF: fix the debug variant.
problem is they both build by default. need a way to disable the debug variant.
2009-04-23 13:18:38 +02:00

16 lines
349 B
JavaScript

include("mjsunit");
var assert_count = 0;
function onLoad () {
var dirname = node.path.dirname(__filename);
var fixtures = node.path.join(dirname, "fixtures");
var x = node.path.join(fixtures, "x.txt");
file = new File;
file.open(x, "r", function (status) {
assertTrue(status == 0);
assert_count += 1;
file.close();
});
};