From 2ae47226c40ef6f3a91885696a3a214f0606e9bc Mon Sep 17 00:00:00 2001 From: Ruslan Bekenev Date: Tue, 25 Apr 2017 00:09:52 +0300 Subject: [PATCH] test: use common.js to check platform PR-URL: https://github.com/nodejs/node/pull/12629 Reviewed-By: Daniel Bevenius Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Gibson Fahnestock Reviewed-By: Vse Mozhet Byt --- test/parallel/test-fs-readfile-error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index 827c84d7b70..7a0d2447b56 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -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; }