Skip to content

Commit

Permalink
test: use common.js to check platform
Browse files Browse the repository at this point in the history
PR-URL: #12629
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information
krydos authored and addaleax committed Apr 27, 2017
1 parent 5bb06e8 commit f6b1eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-readfile-error.js
Expand Up @@ -27,7 +27,7 @@ const path = require('path');

// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
// the directory there.
if (process.platform === 'freebsd') {
if (common.isFreeBSD) {
common.skip('platform not supported.');
return;
}
Expand Down

0 comments on commit f6b1eb2

Please sign in to comment.