Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses Uncomment the waddstr call that was retu...



details:   https://anonhg.NetBSD.org/src/rev/0475c1e2caf5
branches:  trunk
changeset: 372296:0475c1e2caf5
user:      blymn <blymn%NetBSD.org@localhost>
date:      Thu Nov 10 06:13:29 2022 +0000

description:
Uncomment the waddstr call that was returning ERR, this is actually
correct so make the expected return ERR then repeat the call with
scrollok set to true to validate.

Do refreshes on the window instead of stdscr so we get the window
contents reported and update the check files with the expected
output.

diffstat:

 tests/lib/libcurses/check_files/Makefile     |   3 ++-
 tests/lib/libcurses/check_files/waddstr.chk  |   4 +++-
 tests/lib/libcurses/check_files/waddstr2.chk |   3 +++
 tests/lib/libcurses/tests/waddstr            |  12 ++++++++----
 4 files changed, 16 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r 048c4a1f9bd9 -r 0475c1e2caf5 tests/lib/libcurses/check_files/Makefile
--- a/tests/lib/libcurses/check_files/Makefile  Thu Nov 10 00:47:01 2022 +0000
+++ b/tests/lib/libcurses/check_files/Makefile  Thu Nov 10 06:13:29 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2022/11/08 06:06:54 blymn Exp $
+# $NetBSD: Makefile,v 1.12 2022/11/10 06:13:29 blymn Exp $
 
 NOMAN=         # defined
 
@@ -241,6 +241,7 @@
 FILES+=                waddnwstr1.chk
 FILES+=                waddnwstr2.chk
 FILES+=                waddstr.chk
+FILES+=                waddstr2.chk
 FILES+=                waddwstr1.chk
 FILES+=                waddwstr2.chk
 FILES+=                waddwstr3.chk
diff -r 048c4a1f9bd9 -r 0475c1e2caf5 tests/lib/libcurses/check_files/waddstr.chk
--- a/tests/lib/libcurses/check_files/waddstr.chk       Thu Nov 10 00:47:01 2022 +0000
+++ b/tests/lib/libcurses/check_files/waddstr.chk       Thu Nov 10 06:13:29 2022 +0000
@@ -1,1 +1,3 @@
-home
\ No newline at end of file
+abcdecup6;8X8
+     012345
+     6    8
     
\ No newline at end of file
diff -r 048c4a1f9bd9 -r 0475c1e2caf5 tests/lib/libcurses/check_files/waddstr2.chk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lib/libcurses/check_files/waddstr2.chk      Thu Nov 10 06:13:29 2022 +0000
@@ -0,0 +1,3 @@
+012345cup5;6X6cup6;8Xel
+       8el
+     el
\ No newline at end of file
diff -r 048c4a1f9bd9 -r 0475c1e2caf5 tests/lib/libcurses/tests/waddstr
--- a/tests/lib/libcurses/tests/waddstr Thu Nov 10 00:47:01 2022 +0000
+++ b/tests/lib/libcurses/tests/waddstr Thu Nov 10 06:13:29 2022 +0000
@@ -2,8 +2,12 @@
 call OK waddstr $win1 "abcde\n"
 call OK waddstr $win1 "\n"
 call OK waddstr $win1 "\t8\n"
-# XXX: The following line causes an unexpected "ERR Resource temporarily
-# unavailable" on NetBSD/amd64 9.99.80.
-#call OK waddstr $win1 "0123456\t8\n"
-call OK refresh
+# The following should ERR because it will try to scroll but
+# scrollok is false
+call ERR waddstr $win1 "0123456\t8\n"
+call OK wrefresh $win1
 compare waddstr.chk
+call OK scrollok $win1 $TRUE
+call OK waddstr $win1 "0123456\t8\n"
+call OK wrefresh $win1
+compare waddstr2.chk



Home | Main Index | Thread Index | Old Index