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>
This commit is contained in:
parent
27e9ed6e98
commit
50648d6018
@ -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…
x
Reference in New Issue
Block a user