Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libcurses Fix dupwin test.
details: https://anonhg.NetBSD.org/src/rev/da7ab03f0f62
branches: trunk
changeset: 457079:da7ab03f0f62
user: blymn <blymn%NetBSD.org@localhost>
date: Tue Jun 11 08:09:35 2019 +0000
description:
Fix dupwin test.
diffstat:
tests/lib/libcurses/check_files/dupwin1.chk | 2 +-
tests/lib/libcurses/check_files/dupwin2.chk | 2 +-
tests/lib/libcurses/t_curses.sh | 2 +-
tests/lib/libcurses/tests/dupwin | 7 +++++--
tests/lib/libcurses/tests/fill_window_numbers | 7 +++++--
5 files changed, 13 insertions(+), 7 deletions(-)
diffs (72 lines):
diff -r 2d4c23d22733 -r da7ab03f0f62 tests/lib/libcurses/check_files/dupwin1.chk
--- a/tests/lib/libcurses/check_files/dupwin1.chk Tue Jun 11 08:00:38 2019 +0000
+++ b/tests/lib/libcurses/check_files/dupwin1.chk Tue Jun 11 08:09:35 2019 +0000
@@ -3,4 +3,4 @@
333333
444444
555555
- 666666cup8;11Xcup9;13X111111cup10;13X222222cup11;13X333333cup12;13X444444cup13;13X555555cup14;13X666666cup14;18X
+ 666666
cup9;13X111111cup10;13X222222cup11;13X333333cup12;13X444444cup13;13X555555cup14;13X666666cup14;13X
\ No newline at end of file
diff -r 2d4c23d22733 -r da7ab03f0f62 tests/lib/libcurses/check_files/dupwin2.chk
--- a/tests/lib/libcurses/check_files/dupwin2.chk Tue Jun 11 08:00:38 2019 +0000
+++ b/tests/lib/libcurses/check_files/dupwin2.chk Tue Jun 11 08:09:35 2019 +0000
@@ -1,1 +1,1 @@
-cup8;11Xcup9;13Xaaaaaacup10;13Xbbbbbbcup11;13Xcccccccup12;13Xddddddcup13;13Xeeeeeecup14;13Xffffffcup14;18X
+cup8;6Xcup9;13Xaaaaaacup10;13Xbbbbbbcup11;13Xcccccccup12;13Xddddddcup13;13Xeeeeeecup14;13Xffffffcup14;13X
\ No newline at end of file
diff -r 2d4c23d22733 -r da7ab03f0f62 tests/lib/libcurses/t_curses.sh
--- a/tests/lib/libcurses/t_curses.sh Tue Jun 11 08:00:38 2019 +0000
+++ b/tests/lib/libcurses/t_curses.sh Tue Jun 11 08:09:35 2019 +0000
@@ -765,7 +765,7 @@
# atf_add_test_case delay_output # not working
atf_add_test_case derwin
atf_add_test_case doupdate
-# atf_add_test_case dupwin # not working
+ atf_add_test_case dupwin
atf_add_test_case erasechar
atf_add_test_case flash
atf_add_test_case getattrs
diff -r 2d4c23d22733 -r da7ab03f0f62 tests/lib/libcurses/tests/dupwin
--- a/tests/lib/libcurses/tests/dupwin Tue Jun 11 08:00:38 2019 +0000
+++ b/tests/lib/libcurses/tests/dupwin Tue Jun 11 08:09:35 2019 +0000
@@ -6,6 +6,11 @@
call OK wrefresh $win1
call OK wrefresh $win2
compare dupwin1.chk
+call OK scrollok $win2 $TRUE
+call OK wmove $win2 5 0
+call OK waddstr $win2 "ffffff"
+call OK wmove $win2 4 0
+call OK wscrl $win2 -1
call OK wmove $win2 0 0
call OK waddstr $win2 "aaaaaa"
call OK wmove $win2 1 0
@@ -16,8 +21,6 @@
call OK waddstr $win2 "dddddd"
call OK wmove $win2 4 0
call OK waddstr $win2 "eeeeee"
-call OK wmove $win2 5 0
-call OK waddstr $win2 "ffffff"
call OK wrefresh $win1
call OK wrefresh $win2
compare dupwin2.chk
diff -r 2d4c23d22733 -r da7ab03f0f62 tests/lib/libcurses/tests/fill_window_numbers
--- a/tests/lib/libcurses/tests/fill_window_numbers Tue Jun 11 08:00:38 2019 +0000
+++ b/tests/lib/libcurses/tests/fill_window_numbers Tue Jun 11 08:09:35 2019 +0000
@@ -1,3 +1,8 @@
+call OK scrollok $win1 $TRUE
+call OK wmove $win1 5 0
+call OK waddstr $win1 "666666"
+call OK wmove $win1 4 0
+call OK wscrl $win1 -1
call OK wmove $win1 0 0
call OK waddstr $win1 "111111"
call OK wmove $win1 1 0
@@ -8,5 +13,3 @@
call OK waddstr $win1 "444444"
call OK wmove $win1 4 0
call OK waddstr $win1 "555555"
-call OK wmove $win1 5 0
-call OK waddstr $win1 "666666"
Home |
Main Index |
Thread Index |
Old Index