diff options
author | Zach van Rijn <me@zv.io> | 2023-02-08 19:50:02 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-02-08 19:50:02 +0000 |
commit | a479260bd0a0c92773b7448a146a7bbe8bdbe74e (patch) | |
tree | 0bb59cffbb8af54563f5407646b78466434394d9 /system/libuv/fix-test-terminal-illness.patch | |
parent | ebc583dcc2d3bfe399262c4bd276105f5e3dd2b2 (diff) | |
download | packages-a479260bd0a0c92773b7448a146a7bbe8bdbe74e.tar.gz packages-a479260bd0a0c92773b7448a146a7bbe8bdbe74e.tar.bz2 packages-a479260bd0a0c92773b7448a146a7bbe8bdbe74e.tar.xz packages-a479260bd0a0c92773b7448a146a7bbe8bdbe74e.zip |
system/libuv: add patch for nonsense test assumption. fixes #695.
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); |