mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: uv_tty_init now returns EINVAL on IBM i
Since the PR https://github.com/libuv/libuv/pull/2753 has been landed, we need to revert the code change in PR https://github.com/nodejs/node/pull/32338. PR-URL: https://github.com/nodejs/node/pull/33629 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
eb8d6f5fd8
commit
0982bf4234
1 file changed
+4
-5
@@ -21,14 +21,13 @@ assert.throws(
|
||||
|
||||
{
|
||||
const info = {
|
||||
code: common.isWindows || common.isIBMi ? 'EBADF' : 'EINVAL',
|
||||
message: common.isWindows ||
|
||||
common.isIBMi ? 'bad file descriptor' : 'invalid argument',
|
||||
errno: common.isWindows || common.isIBMi ? UV_EBADF : UV_EINVAL,
|
||||
code: common.isWindows ? 'EBADF' : 'EINVAL',
|
||||
message: common.isWindows ? 'bad file descriptor' : 'invalid argument',
|
||||
errno: common.isWindows ? UV_EBADF : UV_EINVAL,
|
||||
syscall: 'uv_tty_init'
|
||||
};
|
||||
|
||||
const suffix = common.isWindows || common.isIBMi ?
|
||||
const suffix = common.isWindows ?
|
||||
'EBADF (bad file descriptor)' : 'EINVAL (invalid argument)';
|
||||
const message = `TTY initialization failed: uv_tty_init returned ${suffix}`;
|
||||
|
||||
|
||||
Reference in new issue
Block a user