Skip to content

Commit ac825fc

Browse files
krydosgibfahn
authored andcommitted
test: use common.js to check platform
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>
1 parent 32d7981 commit ac825fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path');
66

77
// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
88
// the directory there.
9-
if (process.platform === 'freebsd') {
9+
if (common.isFreeBSD) {
1010
common.skip('platform not supported.');
1111
return;
1212
}

0 commit comments

Comments
 (0)