Up to [cvs.NetBSD.org] / src / tests / lib / libcurses / check_files
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Uncomment the waddstr call that was returning ERR, this is actually correct so make the expected return ERR then repeat the call with scrollok set to true to validate. Do refreshes on the window instead of stdscr so we get the window contents reported and update the check files with the expected output.
libcurses: demonstrate bug in addch that doubles tab indentation When adding "\t" via addch, win.curx advances by twice the spaces as intended. This bug was introduced somewhere between NetBSD 8.0 and 9.0. Adding "\t" via addstr does not have this bug. This bug causes the installation menu of sysinst to be have its menu items indented by 16 characters instead of only 8. This in turn produces an ugly line break in the German translation. The test framework for libcurses is not well integrated into ATF. Whenever the expected output is longer than the actual output, or vice versa, the test passes nevertheless. This makes it necessary to constantly look into atf-run.log to see whether the actual output is indeed equal to the expected output, which is crucial, especially for telling the difference between addstr and addnstr. Reusing the .chk files for several tests is not a good idea either. For example, addstr and waddstr are supposed to produce the same result for ASCII-only text, so it was tempting to use the same file. But waddstr seems to have a bug (maybe undefined behavior), at least waddstr returns ERR in one case where it shouldn't. This means that currently the expected output (acknowledging the bug) must be different. The "expected" test output in waddstr.chk looks completely broken, but that's exactly what the test produces right now.