Module Name: src
Committed By: rillig
Date: Tue Feb 9 20:31:02 UTC 2021
Modified Files:
src/tests/lib/libcurses: testframe.txt
src/tests/lib/libcurses/tests: timeout wtimeout
Log Message:
tests/libcurses: fix spelling of the special call to DRAIN
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libcurses/testframe.txt
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libcurses/tests/timeout
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libcurses/tests/wtimeout
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libcurses/testframe.txt
diff -u src/tests/lib/libcurses/testframe.txt:1.7 src/tests/lib/libcurses/testframe.txt:1.8
--- src/tests/lib/libcurses/testframe.txt:1.7 Sun Feb 7 20:20:06 2021
+++ src/tests/lib/libcurses/testframe.txt Tue Feb 9 20:31:02 2021
@@ -1,4 +1,4 @@
-$NetBSD: testframe.txt,v 1.7 2021/02/07 20:20:06 rillig Exp $
+$NetBSD: testframe.txt,v 1.8 2021/02/09 20:31:02 rillig Exp $
CURSES TESTFRAME
----------------
@@ -261,8 +261,8 @@ of the operation can either be used as a
be used as an expected result for a call.
In addition to all the curses calls being supported by the slave,
-there is one more special call called "drain". This call repeatedly
-called wgetch(win) until there are no more characters in win. The call
+there is one more special call called "DRAIN". This call repeatedly
+calls wgetch(win) until there are no more characters in win. The call
assumes that the curses input is either in no delay or timed input
mode otherwise the test will time out and fail. This call can be used
to clear any pending input when testing a timed read, to prevent the
Index: src/tests/lib/libcurses/tests/timeout
diff -u src/tests/lib/libcurses/tests/timeout:1.2 src/tests/lib/libcurses/tests/timeout:1.3
--- src/tests/lib/libcurses/tests/timeout:1.2 Sat Oct 24 04:46:17 2020
+++ src/tests/lib/libcurses/tests/timeout Tue Feb 9 20:31:02 2021
@@ -10,8 +10,8 @@ input "b"
# since delay is in effect and we set timeout the following getch should
# return ERR not the character b.
call -1 getch
-# drain input....
-call OK drain STDSCR
+# drain input ...
+call OK DRAIN STDSCR
call OK timeout -1
call OK keypad STDSCR 1
delay 0
Index: src/tests/lib/libcurses/tests/wtimeout
diff -u src/tests/lib/libcurses/tests/wtimeout:1.1 src/tests/lib/libcurses/tests/wtimeout:1.2
--- src/tests/lib/libcurses/tests/wtimeout:1.1 Sat Oct 24 04:46:17 2020
+++ src/tests/lib/libcurses/tests/wtimeout Tue Feb 9 20:31:02 2021
@@ -10,8 +10,8 @@ input "b"
# since delay is in effect and we set timeout the following getch should
# return ERR not the character b.
call -1 wgetch $win1
-# drain input....
-call OK drain $win1
+# drain input ...
+call OK DRAIN $win1
call OK wtimeout $win1 -1
call OK keypad $win1 1
delay 0