summaryrefslogtreecommitdiff
path: root/system/libuv/fix-test-terminal-illness.patch
blob: 85efd77d928c02a44804d1d84ca76052be257ce7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);