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 "/".
  • Loading branch information
indutny committed Jan 13, 2015
1 parent 36c79c7 commit 4e458d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,12 @@ var assert = require('assert');
var exec = require('child_process').exec;
var path = require('path');

// `fs.readFile('/')` does not fail on FreeBSD
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 4e458d7

Please sign in to comment.