Skip to content

Commit 15eb5a3

Browse files
dmabuptcodebytere
authored andcommitted
test: uv_tty_init now returns EINVAL on IBM i
Since the PR libuv/libuv#2753 has been landed, we need to revert the code change in PR #32338. PR-URL: #33629 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent c3728c6 commit 15eb5a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/parallel/test-ttywrap-invalid-fd.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ assert.throws(
2121

2222
{
2323
const info = {
24-
code: common.isWindows || common.isIBMi ? 'EBADF' : 'EINVAL',
25-
message: common.isWindows ||
26-
common.isIBMi ? 'bad file descriptor' : 'invalid argument',
27-
errno: common.isWindows || common.isIBMi ? UV_EBADF : UV_EINVAL,
24+
code: common.isWindows ? 'EBADF' : 'EINVAL',
25+
message: common.isWindows ? 'bad file descriptor' : 'invalid argument',
26+
errno: common.isWindows ? UV_EBADF : UV_EINVAL,
2827
syscall: 'uv_tty_init'
2928
};
3029

31-
const suffix = common.isWindows || common.isIBMi ?
30+
const suffix = common.isWindows ?
3231
'EBADF (bad file descriptor)' : 'EINVAL (invalid argument)';
3332
const message = `TTY initialization failed: uv_tty_init returned ${suffix}`;
3433

0 commit comments

Comments
 (0)