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 gibfahn committed May 15, 2017
1 parent 32d7981 commit ac825fc
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 @@ -6,7 +6,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 ac825fc

Please sign in to comment.