Skip to content

Commit dbc7d9b

Browse files
bnoordhuisMylesBorins
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 Backport-PR-URL: #24103 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 b38190e commit dbc7d9b

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
@@ -24,9 +24,9 @@ const common = require('../common');
2424

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

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

3232
const assert = require('assert');

0 commit comments

Comments
 (0)