Skip to content

Commit b2d3445

Browse files
bnoordhuistargos
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 <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent eee71d6 commit b2d3445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
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)