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 slk_wset test which was ...



details:   https://anonhg.NetBSD.org/src/rev/c8becf635d63
branches:  trunk
changeset: 372282:c8becf635d63
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Nov 08 06:06:54 2022 +0000

description:
* Uncomment the slk_wset test which was previously commented out due
  to incorrect output as this bug has been fixed.
* Added a check file to verify the slk_wset output.

diffstat:

 tests/lib/libcurses/check_files/Makefile |  3 ++-
 tests/lib/libcurses/check_files/slk7.chk |  1 +
 tests/lib/libcurses/tests/slk            |  8 ++++----
 3 files changed, 7 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r e4ee79a5536b -r c8becf635d63 tests/lib/libcurses/check_files/Makefile
--- a/tests/lib/libcurses/check_files/Makefile  Tue Nov 08 01:43:09 2022 +0000
+++ b/tests/lib/libcurses/check_files/Makefile  Tue Nov 08 06:06:54 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2022/04/20 07:43:05 blymn Exp $
+# $NetBSD: Makefile,v 1.11 2022/11/08 06:06:54 blymn Exp $
 
 NOMAN=         # defined
 
@@ -222,6 +222,7 @@
 FILES+=                slk4.chk
 FILES+=                slk5.chk
 FILES+=                slk6.chk
+FILES+=                slk7.chk
 FILES+=                slk_init.chk
 FILES+=                timeout.chk
 FILES+=                touchline1.chk
diff -r e4ee79a5536b -r c8becf635d63 tests/lib/libcurses/check_files/slk7.chk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lib/libcurses/check_files/slk7.chk  Tue Nov 08 06:06:54 2022 +0000
@@ -0,0 +1,1 @@
+cup24;19Xsetaf1Xsetab2Xsmulrev 㐁a㐁b rmulsgr0op
\ No newline at end of file
diff -r e4ee79a5536b -r c8becf635d63 tests/lib/libcurses/tests/slk
--- a/tests/lib/libcurses/tests/slk     Tue Nov 08 01:43:09 2022 +0000
+++ b/tests/lib/libcurses/tests/slk     Tue Nov 08 06:06:54 2022 +0000
@@ -54,7 +54,7 @@
 compare slk6.chk
 
 # test slk_wset
-# [buggy??] 'b' should be printed as (wcswidth(wstr) == 6) <= 8 
-#wchar WSTR [0x3401, "a", 0x3401, "b"]
-#call OK slk_wset 3 $WSTR 1
-#call OK slk_refresh
+wchar WSTR [0x3401, "a", 0x3401, "b"]
+call OK slk_wset 3 $WSTR 1
+call OK slk_refresh
+compare slk7.chk


Home | Main Index | Thread Index | Old Index