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/libcurses: fix spelling of the spe...
details: https://anonhg.NetBSD.org/src/rev/8a058e97aba2
branches: trunk
changeset: 951975:8a058e97aba2
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Feb 09 20:31:02 2021 +0000
description:
tests/libcurses: fix spelling of the special call to DRAIN
diffstat:
tests/lib/libcurses/testframe.txt | 6 +++---
tests/lib/libcurses/tests/timeout | 4 ++--
tests/lib/libcurses/tests/wtimeout | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r 0644bb8dc16f -r 8a058e97aba2 tests/lib/libcurses/testframe.txt
--- a/tests/lib/libcurses/testframe.txt Tue Feb 09 20:24:02 2021 +0000
+++ b/tests/lib/libcurses/testframe.txt Tue Feb 09 20:31:02 2021 +0000
@@ -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 @@
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
diff -r 0644bb8dc16f -r 8a058e97aba2 tests/lib/libcurses/tests/timeout
--- a/tests/lib/libcurses/tests/timeout Tue Feb 09 20:24:02 2021 +0000
+++ b/tests/lib/libcurses/tests/timeout Tue Feb 09 20:31:02 2021 +0000
@@ -10,8 +10,8 @@
# 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
diff -r 0644bb8dc16f -r 8a058e97aba2 tests/lib/libcurses/tests/wtimeout
--- a/tests/lib/libcurses/tests/wtimeout Tue Feb 09 20:24:02 2021 +0000
+++ b/tests/lib/libcurses/tests/wtimeout Tue Feb 09 20:31:02 2021 +0000
@@ -10,8 +10,8 @@
# 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
Home |
Main Index |
Thread Index |
Old Index