summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-readfile-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-readfile-error.js')
-rw-r--r--test/parallel/test-fs-readfile-error.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js
index e7c52f19a8..616760b066 100644
--- a/test/parallel/test-fs-readfile-error.js
+++ b/test/parallel/test-fs-readfile-error.js
@@ -21,6 +21,9 @@
'use strict';
const common = require('../common');
+
+// Test that fs.readFile fails correctly on a non-existent file.
+
// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
// the directory there.
if (common.isFreeBSD)