Skip to content

Commit f6b1eb2

Browse files
krydosaddaleax
authored andcommitted
test: use common.js to check platform
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]>
1 parent 5bb06e8 commit f6b1eb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/parallel/test-fs-readfile-error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const path = require('path');
2727

2828
// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
2929
// the directory there.
30-
if (process.platform === 'freebsd') {
30+
if (common.isFreeBSD) {
3131
common.skip('platform not supported.');
3232
return;
3333
}

0 commit comments

Comments
 (0)