diff options
Diffstat (limited to 'system/libuv/fix-test-terminal-illness.patch')
-rw-r--r-- | system/libuv/fix-test-terminal-illness.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/system/libuv/fix-test-terminal-illness.patch b/system/libuv/fix-test-terminal-illness.patch new file mode 100644 index 000000000..85efd77d9 --- /dev/null +++ b/system/libuv/fix-test-terminal-illness.patch @@ -0,0 +1,27 @@ +This patch addresses the following issue: + + https://git.adelielinux.org/adelie/packages/-/issues/695 + +I've run into this enough times to justify this patch, waking +up in the morning to find that my overnight builds failed, or +during manual testing on laptops with smaller displays that +have a reduce line count when I connect to tmux. + +I don't think width is an issue, but saying "you must be 10 +columns or higher to ride" is arbitrarily restrictive. + +--- a/test/test-tty.c ++++ b/test/test-tty.c +@@ -118,10 +118,10 @@ + + /* + * Is it a safe assumption that most people have terminals larger than +- * 10x10? ++ * 10x10? -- No; you know what they say about assumptions. + */ + ASSERT(width > 10); +- ASSERT(height > 10); ++ ASSERT(height > 3); + + /* Turn on raw mode. */ + r = uv_tty_set_mode(&tty_in, UV_TTY_MODE_RAW); |