| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
tests/*.sh: Invoke all test programs through ${CHECKER}.
tests/*/*.sh: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
| |
* modules/yesno-tests (Files): Add init.sh.
* tests/test-yesno.sh: Use it.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
* 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.
|