summaryrefslogtreecommitdiff
path: root/tests/test-yesno.sh
Commit message (Collapse)AuthorAgeFilesLines
* tests: Prepare for using valgrind.Bruno Haible2019-03-101-6/+6
| | | | | tests/*.sh: Invoke all test programs through ${CHECKER}. tests/*/*.sh: Likewise.
* yesno: make EOL optional in ENABLE_NLS case alsoTobias Stoeckmann2015-03-241-0/+8
| | | | | | | | | | | | | yesno behaves differently in a corner case depending on ENABLE_NLS. With an input of "y" followed by an EOF the input is considered to be "no", because the last character is replaced with '\0'. It was assumed that there is a newline, which doesn't have to be true. If ENABLE_NLS is not set, getchar() reads y and accepts it as "yes", looping through more getchar() calls until reaching newline or EOF. * lib/yesno.c (yesno): Check for EOL before replacing. * tests/test-yesno.sh: Add a test case (test along with gettext).
* maint: spelling fixesPaul Eggert2012-02-051-1/+1
|
* yesno-tests: convert to init.shEric Blake2011-05-241-32/+24
| | | | | | | * modules/yesno-tests (Files): Add init.sh. * tests/test-yesno.sh: Use it. Signed-off-by: Eric Blake <eblake@redhat.com>
* test-yesno: work around sparc-dash here-document infelicityJim Meyering2009-09-281-2/+2
| | | | | | | | Without this change, the literal \177 byte in a here document would make dash 0.5.5.1-3 access uninitialized memory. * tests/test-yesno.sh: Don't put the \177 byte in the here document. Instead, use a marker, "@", and filter through tr to create the desired contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
* Make test-yesno.sh work on mingw.Bruno Haible2008-04-271-7/+22
|
* * tests/test-yesno.sh: Silence stderr during test.Eric Blake2007-10-221-2/+3
| | | | Signed-off-by: Eric Blake <ebb9@byu.net>
* Test yesno in combination with closein.Eric Blake2007-08-191-0/+58
* lib/yesno.c (yesno): Document use of stdin. * modules/yesno-tests (Files): New module. * tests/test-yesno.c (main): New file. * tests/test-yesno.sh: Likewise.