Browse Source

test: disable fs-readfile-error on FreeBSD

FreeBSD does not return EISDIR when reading "/".

PR-URL: https://github.com/iojs/io.js/pull/332
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v1.8.0-commit
Fedor Indutny 10 years ago
parent
commit
50648d6018
  1. 7
      test/parallel/test-fs-readfile-error.js

7
test/parallel/test-fs-readfile-error.js

@ -3,6 +3,13 @@ var assert = require('assert');
var exec = require('child_process').exec;
var path = require('path');
// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
// the directory there.
if (process.platform === 'freebsd') {
console.error('Skipping test, platform not supported.');
process.exit();
}
var callbacks = 0;
function test(env, cb) {

Loading…
Cancel
Save