Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-file-cat-noexist.js « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cf1f129e5db47e6c3d58b60696955367af0d86c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include("mjsunit.js");
var status = null;

function onLoad () {
  var dirname = node.path.dirname(__filename);
  var fixtures = node.path.join(dirname, "fixtures");
  var filename = node.path.join(fixtures, "does_not_exist.txt");
  node.fs.cat(filename, "raw", function (s) { status = s });
}

function onExit () {
  assertTrue(status != 0);
}