Skip to content

Commit 787cbe9

Browse files
bnoordhuisTrott
authored andcommitted
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: libuv/libuv#2025 PR-URL: #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>
1 parent 5e63cf2 commit 787cbe9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-fs-readfile-error.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const fs = require('fs');
2525

2626
// Test that fs.readFile fails correctly on a non-existent file.
2727

28-
// `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
29-
// the directory there.
30-
if (common.isFreeBSD)
28+
// `fs.readFile('/')` does not fail on AIX and FreeBSD because you can open
29+
// and read the directory there.
30+
if (common.isAIX || common.isFreeBSD)
3131
common.skip('platform not supported.');
3232

3333
const assert = require('assert');

0 commit comments

Comments
 (0)