summaryrefslogtreecommitdiff
path: root/system/libuv/fix-test-tty-size-assumption.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-02-09 06:03:23 +0000
committerZach van Rijn <me@zv.io>2023-02-09 06:03:23 +0000
commit42f124647be83797a95fa956bdada69805edbd4d (patch)
treefcd769a35581e555399e142a1a3732b26db12442 /system/libuv/fix-test-tty-size-assumption.patch
parent7b8009c13fc75f8920139e36310c19401a681ac2 (diff)
downloadpackages-42f124647be83797a95fa956bdada69805edbd4d.tar.gz
packages-42f124647be83797a95fa956bdada69805edbd4d.tar.bz2
packages-42f124647be83797a95fa956bdada69805edbd4d.tar.xz
packages-42f124647be83797a95fa956bdada69805edbd4d.zip
system/libuv: apply upstream tty size patch. actually fixes #695.
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);