diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2018-10-08 11:04:40 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-08 13:40:54 -0700 |
commit | 787cbe9abe6d93cacc6d3be72e0f2a1ab6b0c12b (patch) | |
tree | 8def8f9dfbe4c4dfc8e276693ef181616059b5c1 /test | |
parent | 5e63cf29bfd09ad2c099b937602a355bd08ecdc4 (diff) | |
download | android-node-v8-787cbe9abe6d93cacc6d3be72e0f2a1ab6b0c12b.tar.gz android-node-v8-787cbe9abe6d93cacc6d3be72e0f2a1ab6b0c12b.tar.bz2 android-node-v8-787cbe9abe6d93cacc6d3be72e0f2a1ab6b0c12b.zip |
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
PR-URL: https://github.com/nodejs/node/pull/23330
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-fs-readfile-error.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index fe6174c577..719c0061c4 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'); |