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 derwin test.



details:   https://anonhg.NetBSD.org/src/rev/2d4c23d22733
branches:  trunk
changeset: 457078:2d4c23d22733
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Jun 11 08:00:38 2019 +0000

description:
fix derwin test.

diffstat:

 tests/lib/libcurses/check_files/derwin1.chk |   2 +-
 tests/lib/libcurses/check_files/derwin2.chk |   2 +-
 tests/lib/libcurses/t_curses.sh             |   2 +-
 tests/lib/libcurses/tests/derwin            |  14 ++++++++++----
 4 files changed, 13 insertions(+), 7 deletions(-)

diffs (68 lines):

diff -r 6b6072d3efe4 -r 2d4c23d22733 tests/lib/libcurses/check_files/derwin1.chk
--- a/tests/lib/libcurses/check_files/derwin1.chk       Tue Jun 11 04:52:44 2019 +0000
+++ b/tests/lib/libcurses/check_files/derwin1.chk       Tue Jun 11 08:00:38 2019 +0000
@@ -3,4 +3,4 @@
      000000
      000000
      000000
-     000000cup8;11X
+     000000
     
\ No newline at end of file
diff -r 6b6072d3efe4 -r 2d4c23d22733 tests/lib/libcurses/check_files/derwin2.chk
--- a/tests/lib/libcurses/check_files/derwin2.chk       Tue Jun 11 04:52:44 2019 +0000
+++ b/tests/lib/libcurses/check_files/derwin2.chk       Tue Jun 11 08:00:38 2019 +0000
@@ -1,1 +1,1 @@
-cup4;7X222cup5;7X222cup6;7X222cup8;11X
+0222cup5;7X222cup6;7X222cup8;6X
\ No newline at end of file
diff -r 6b6072d3efe4 -r 2d4c23d22733 tests/lib/libcurses/t_curses.sh
--- a/tests/lib/libcurses/t_curses.sh   Tue Jun 11 04:52:44 2019 +0000
+++ b/tests/lib/libcurses/t_curses.sh   Tue Jun 11 08:00:38 2019 +0000
@@ -763,7 +763,7 @@
        atf_add_test_case curs_set
        atf_add_test_case define_key
 #      atf_add_test_case delay_output # not working
-#      atf_add_test_case derwin # not working
+       atf_add_test_case derwin
        atf_add_test_case doupdate
 #      atf_add_test_case dupwin # not working
        atf_add_test_case erasechar
diff -r 6b6072d3efe4 -r 2d4c23d22733 tests/lib/libcurses/tests/derwin
--- a/tests/lib/libcurses/tests/derwin  Tue Jun 11 04:52:44 2019 +0000
+++ b/tests/lib/libcurses/tests/derwin  Tue Jun 11 08:00:38 2019 +0000
@@ -1,5 +1,10 @@
 include start
 include window_create
+call OK scrollok $win1 $TRUE
+call OK wmove $win1 5 0
+call OK waddstr $win1 "000000"
+call OK wmove $win1 4 0
+call OK wscrl $win1 -1
 call OK wmove $win1 0 0
 call OK waddstr $win1 "000000"
 call OK wmove $win1 1 0
@@ -10,18 +15,19 @@
 call OK waddstr $win1 "000000"
 call OK wmove $win1 4 0
 call OK waddstr $win1 "000000"
-call OK wmove $win1 5 0
-call OK waddstr $win1 "000000"
 call OK wrefresh $win1
 compare derwin1.chk
 call win2 derwin $win1 3 3 1 1
 check win2 NON_NULL
+call OK scrollok $win2 $TRUE
+call OK wmove $win2 2 0
+call OK waddstr $win2 "222"
+call OK wmove $win2 1 0
+call OK wscrl $win2 -1
 call OK wmove $win2 0 0
 call OK waddstr $win2 "222"
 call OK wmove $win2 1 0
 call OK waddstr $win2 "222"
-call OK wmove $win2 2 0
-call OK waddstr $win2 "222"
 call OK wrefresh $win1
 compare derwin2.chk
 



Home | Main Index | Thread Index | Old Index