Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libcurses/tests tests/libcurses: demonstrate more ...



details:   https://anonhg.NetBSD.org/src/rev/797db3b6d8d1
branches:  trunk
changeset: 959296:797db3b6d8d1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Feb 07 13:06:02 2021 +0000

description:
tests/libcurses: demonstrate more bugs in addch

diffstat:

 tests/lib/libcurses/tests/addch |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r b7de70b5929d -r 797db3b6d8d1 tests/lib/libcurses/tests/addch
--- a/tests/lib/libcurses/tests/addch   Sun Feb 07 12:56:53 2021 +0000
+++ b/tests/lib/libcurses/tests/addch   Sun Feb 07 13:06:02 2021 +0000
@@ -8,6 +8,7 @@
 # Somewhere between NetBSD 8.0 and 9.0, a bug was added to addch that
 # doubled the spaces for a tab.  Instead of 8 spaces, there are now 16.
 call OK addch "\t"
+call2 6 16 getyx STDSCR                # FIXME: must be 8, not 16
 call OK addch "8"
 call OK addch "\n"
 
@@ -15,6 +16,8 @@
 # doubled the spaces for a tab.  Instead of 1 space, there are now 2.
 call OK addstr "0123456"
 call OK addch "\t"
+call2 7 9 getyx STDSCR         # FIXME: with probability around 50%, the
+                               # 7 comes out as a 6.
 call OK addch "8"
 call OK addch "\n"
 



Home | Main Index | Thread Index | Old Index