From 1dbcc7151aeda4a62ff3a48e29edd402fbb6dc25 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 --- 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 da64505e242b2c..5b3efe1de6ec81 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -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; }