From 42f124647be83797a95fa956bdada69805edbd4d Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Thu, 9 Feb 2023 06:03:23 +0000 Subject: system/libuv: apply upstream tty size patch. actually fixes #695. --- system/libuv/fix-test-tty-size-assumption.patch | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 system/libuv/fix-test-tty-size-assumption.patch (limited to 'system/libuv/fix-test-tty-size-assumption.patch') diff --git a/system/libuv/fix-test-tty-size-assumption.patch b/system/libuv/fix-test-tty-size-assumption.patch new file mode 100644 index 000000000..7f1f7cff2 --- /dev/null +++ b/system/libuv/fix-test-tty-size-assumption.patch @@ -0,0 +1,29 @@ +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); -- cgit v1.2.3-60-g2f50