Skip to content

Commit

Permalink
test: disable fs-readfile-error on FreeBSD
Browse files Browse the repository at this point in the history
FreeBSD does not return EISDIR when reading "/".

PR-URL: #332
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
indutny committed Jan 13, 2015
1 parent 27e9ed6 commit 50648d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/parallel/test-fs-readfile-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 50648d6

Please sign in to comment.