From 9f567e7a0aee6a9d6bc3c6ebe293efda800f2da3 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 827c84d7b7093c..7a0d2447b56a0e 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; }