From 15eb5a3da4cc4fe71856e1ea512f57f49c9eda01 Mon Sep 17 00:00:00 2001 From: Xu Meng Date: Thu, 28 May 2020 21:15:28 -0500 Subject: [PATCH] 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 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig --- test/parallel/test-ttywrap-invalid-fd.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-ttywrap-invalid-fd.js b/test/parallel/test-ttywrap-invalid-fd.js index 5539ff22962244..ea2e0f276dbf9a 100644 --- a/test/parallel/test-ttywrap-invalid-fd.js +++ b/test/parallel/test-ttywrap-invalid-fd.js @@ -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}`;