diff options
| author | blymn <blymn@NetBSD.org> | 2022-04-26 22:48:36 +0000 |
|---|---|---|
| committer | blymn <blymn@NetBSD.org> | 2022-04-26 22:48:36 +0000 |
| commit | 2d10eecb1afa1bd4c803cae1983fccdff8dc072c (patch) | |
| tree | a522049b3b87be3c1d02da02d599f1a2bd4f3fa2 /tests | |
| parent | 82166f1501c380976493e521d05baddbc58f7dbd (diff) | |
Add test for wresize.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lib/libcurses/t_curses.sh | 11 | ||||
| -rw-r--r-- | tests/lib/libcurses/tests/Makefile | 3 | ||||
| -rw-r--r-- | tests/lib/libcurses/tests/wresize | 9 |
3 files changed, 22 insertions, 1 deletions
diff --git a/tests/lib/libcurses/t_curses.sh b/tests/lib/libcurses/t_curses.sh index c82660d5ba4..9af9db9b268 100644 --- a/tests/lib/libcurses/t_curses.sh +++ b/tests/lib/libcurses/t_curses.sh @@ -1666,6 +1666,16 @@ wredrawln_body() 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_init_test_cases() 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 --git a/tests/lib/libcurses/tests/Makefile b/tests/lib/libcurses/tests/Makefile index 3d97216bceb..4ddfc744bfb 100644 --- a/tests/lib/libcurses/tests/Makefile +++ b/tests/lib/libcurses/tests/Makefile @@ -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+= winsch FILES+= winwstr FILES+= wprintw FILES+= wredrawln +FILES+= wresize FILES+= wscrl FILES+= wsetscrreg FILES+= wstandout diff --git a/tests/lib/libcurses/tests/wresize b/tests/lib/libcurses/tests/wresize new file mode 100644 index 00000000000..d32aeaac4ab --- /dev/null +++ b/tests/lib/libcurses/tests/wresize @@ -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 |
