Module Name: src Committed By: blymn Date: Tue Jun 25 22:19:29 UTC 2019
Modified Files: src/tests/lib/libcurses: t_curses.sh src/tests/lib/libcurses/tests: mvscanw Log Message: Fixed mvscanw test but leave disabled for the moment, the return for mvscanw is incorrect in libcurses, we need a major lib version bump to correct it. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libcurses/t_curses.sh cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libcurses/tests/mvscanw Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libcurses/t_curses.sh diff -u src/tests/lib/libcurses/t_curses.sh:1.13 src/tests/lib/libcurses/t_curses.sh:1.14 --- src/tests/lib/libcurses/t_curses.sh:1.13 Tue Jun 11 10:23:36 2019 +++ src/tests/lib/libcurses/t_curses.sh Tue Jun 25 22:19:29 2019 @@ -802,7 +802,7 @@ atf_init_test_cases() atf_add_test_case mvhline atf_add_test_case mvinchnstr atf_add_test_case mvprintw -# atf_add_test_case mvscanw # not working +# atf_add_test_case mvscanw # disable for now - return is wrong atf_add_test_case mvvline # atf_add_test_case pad # not working atf_add_test_case nocbreak Index: src/tests/lib/libcurses/tests/mvscanw diff -u src/tests/lib/libcurses/tests/mvscanw:1.1 src/tests/lib/libcurses/tests/mvscanw:1.2 --- src/tests/lib/libcurses/tests/mvscanw:1.1 Sun May 26 09:54:33 2019 +++ src/tests/lib/libcurses/tests/mvscanw Tue Jun 25 22:19:29 2019 @@ -1,4 +1,11 @@ include start input "testing 1 2 3\n" call2 OK "testing" mvscanw 3 5 "%s" -compare /dev/null +input "testing 1 2 3\n" +call2 OK "test" mvscanw 3 5 "%4s" +# 50 will translate into number 2 in ascii +input "50 12\n" +call2 OK "2" mvscanw 3 5 "%d" +input "aa bb 50 12\n" +# expect ERR becauss input has alpha and scanw wants integer +call2 ERR "2" mvscanw 3 5 "%d"