Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses Add test for wresize.



details:   https://anonhg.NetBSD.org/src/rev/996c43b8c4d0
branches:  trunk
changeset: 365820:996c43b8c4d0
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Apr 26 22:48:36 2022 +0000

description:
Add test for wresize.

diffstat:

 tests/lib/libcurses/t_curses.sh    |  11 +++++++++++
 tests/lib/libcurses/tests/Makefile |   3 ++-
 tests/lib/libcurses/tests/wresize  |   9 +++++++++
 3 files changed, 22 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r b50b25505e1a -r 996c43b8c4d0 tests/lib/libcurses/t_curses.sh
--- a/tests/lib/libcurses/t_curses.sh   Tue Apr 26 22:40:32 2022 +0000
+++ b/tests/lib/libcurses/t_curses.sh   Tue Apr 26 22:48:36 2022 +0000
@@ -1666,6 +1666,16 @@
     h_run wredrawln
 }
 
+atf_test_case wresize
+wresize_head()
+{
+    atf_set "descr" "Tests resizing a window with a subwin"
+}
+wresize_body()
+{
+    h_run wresize
+}
+
 ##########################################
 # curses soft label key routines
 ##########################################
@@ -2365,6 +2375,7 @@
        atf_add_test_case is_linetouched
        atf_add_test_case is_wintouched
        atf_add_test_case redrawwin
+       atf_add_test_case wresize
        atf_add_test_case wredrawln
 
        # curses soft label key routines
diff -r b50b25505e1a -r 996c43b8c4d0 tests/lib/libcurses/tests/Makefile
--- a/tests/lib/libcurses/tests/Makefile        Tue Apr 26 22:40:32 2022 +0000
+++ b/tests/lib/libcurses/tests/Makefile        Tue Apr 26 22:48:36 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2022/04/20 07:43:05 blymn Exp $
+# $NetBSD: Makefile,v 1.7 2022/04/26 22:48:36 blymn Exp $
 
 NOMAN=         # defined
 
@@ -213,6 +213,7 @@
 FILES+=                winwstr
 FILES+=                wprintw
 FILES+=                wredrawln
+FILES+=                wresize
 FILES+=                wscrl
 FILES+=                wsetscrreg
 FILES+=                wstandout
diff -r b50b25505e1a -r 996c43b8c4d0 tests/lib/libcurses/tests/wresize
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lib/libcurses/tests/wresize Tue Apr 26 22:48:36 2022 +0000
@@ -0,0 +1,9 @@
+include window
+
+call win2 subwin $win1 5 5 3 6
+check win2 NON_NULL
+#
+call OK wresize $win1 4 4
+#
+call2 4 4 getmaxyx $win1
+call2 3 3 getmaxyx $win2



Home | Main Index | Thread Index | Old Index