From f2aeea78510758053e1634bb6ea6268edfefed51 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 31 Jan 2023 12:24:58 +0100 Subject: [PATCH] test: remove bad tty window size assumption Fixes: https://github.com/libuv/libuv/issues/3894 --- test/test-tty.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/test-tty.c b/test/test-tty.c index 2c7ec4ec56..f53a701fce 100644 --- a/test/test-tty.c +++ b/test/test-tty.c @@ -116,12 +116,8 @@ TEST_IMPL(tty) { return TEST_SKIP; } - /* - * Is it a safe assumption that most people have terminals larger than - * 10x10? - */ - ASSERT(width > 10); - ASSERT(height > 10); + ASSERT_GT(width, 0); + ASSERT_GT(height, 0); /* Turn on raw mode. */ r = uv_tty_set_mode(&tty_in, UV_TTY_MODE_RAW);