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: nodejs#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 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
Original file line number Diff line number Diff line change
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.