]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: consolidate tests for true and false
authorPádraig Brady <P@draigBrady.com>
Tue, 3 Jun 2014 09:50:09 +0000 (10:50 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 3 Jun 2014 17:39:57 +0000 (18:39 +0100)
commit9a6a486e6503520fd2581f2d3356b7149f1b225d
tree8752754ae8780de8ceb4d2ab1113d8b74faef77c
parent1239ac573df0a699d6999aed23caaf4a0eb099df
tests: consolidate tests for true and false

* src/true.c (main): Add a comment about the possibility
of true returning EXIT_FAILURE due to write failure.
* tests/misc/false-status.sh: Fix so we're testing
the tool and not the shell builtin.  Add a case for true(1).
* tests/misc/help-version.sh: Skip /dev/full test
for true as well as false since the exit status is tested separately.
Also remove the iterations for different LC_MESSAGES, as this was only
applied for false(1).  Translations are not honored in the test dir
and so would need separate handling in any case.
src/true.c
tests/misc/false-status.sh
tests/misc/help-version.sh