test: Test EBADF tty handling
PR-URL: https://github.com/libuv/libuv/pull/2753 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
5f1ac8ee36
commit
4878e8284f
@ -360,6 +360,8 @@ TEST_IMPL(tty_file) {
|
||||
if (fd != -1) {
|
||||
ASSERT(UV_EINVAL == uv_tty_init(&loop, &tty, fd, 1));
|
||||
ASSERT(0 == close(fd));
|
||||
/* test EBADF handling */
|
||||
ASSERT(UV_EINVAL == uv_tty_init(&loop, &tty, fd, 1));
|
||||
}
|
||||
|
||||
/* Bug on AIX where '/dev/random' returns 1 from isatty() */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user