From 75d6134a14e246e862a0d60b082c42e3efa2bf40 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 8 Oct 2018 11:04:40 +0200 Subject: [PATCH] test: read() on dir on AIX does not return EISDIR An upcoming change in libuv will remove the artificial EISDIR error. Update the test to reflect that. Refs: https://github.com/libuv/libuv/pull/2025 --- test/parallel/test-fs-readfile-error.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index fe6174c5777df1..719c0061c4e39e 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -25,9 +25,9 @@ const fs = require('fs'); // Test that fs.readFile fails correctly on a non-existent file. -// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read -// the directory there. -if (common.isFreeBSD) +// `fs.readFile('/')` does not fail on AIX and FreeBSD because you can open +// and read the directory there. +if (common.isAIX || common.isFreeBSD) common.skip('platform not supported.'); const assert = require('assert');