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 <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.