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.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js
index 208b478c12..d9ad834afc 100644
--- a/test/parallel/test-fs-readfile-error.js
+++ b/test/parallel/test-fs-readfile-error.js
@@ -21,16 +21,14 @@
'use strict';
const common = require('../common');
-const assert = require('assert');
-const exec = require('child_process').exec;
-const path = require('path');
-
// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
// the directory there.
-if (common.isFreeBSD) {
+if (common.isFreeBSD)
common.skip('platform not supported.');
- return;
-}
+
+const assert = require('assert');
+const exec = require('child_process').exec;
+const path = require('path');
function test(env, cb) {
const filename = path.join(common.fixturesDir, 'test-fs-readfile-error.js');