summaryrefslogtreecommitdiff
path: root/system/libuv/fix-test-tty-size-assumption.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/libuv/fix-test-tty-size-assumption.patch')
-rw-r--r--system/libuv/fix-test-tty-size-assumption.patch29
1 files changed, 29 insertions, 0 deletions
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 <info@bnoordhuis.nl>
+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);