]> git.ipfire.org Git - thirdparty/make.git/commit
Avoid using false(1) in regression tests
authorPaul Smith <psmith@gnu.org>
Sat, 31 Dec 2022 15:31:24 +0000 (10:31 -0500)
committerPaul Smith <psmith@gnu.org>
Sat, 31 Dec 2022 15:51:24 +0000 (10:51 -0500)
commit29f453739f0059f632ce2963ca0c68f8bf6c5991
tree64e3f8c59c850aa336820f6f12c534ae979dfdfb
parent937e9aa32d8db6537edbd7260315106f7086b340
Avoid using false(1) in regression tests

The POSIX standard only requires false(1) to return a "non-zero" exit
code; almost all systems return 1 but some (Solaris!!!) return 255 or
possibly even other values.  Use our helper "fail" instead.

* tests/thelp.pl: Have the "fail" command obey -q.
* tests/scripts/features/parallelism: Helper -q no longer prints fail.
* tests/scripts/targets/POSIX: Replace false with #HELPER# -q fail 1.
* tests/scripts/variables/MAKEFLAGS: Ditto.
* tests/scripts/variables/SHELL: Ditto.
tests/scripts/features/parallelism
tests/scripts/targets/POSIX
tests/scripts/variables/MAKEFLAGS
tests/scripts/variables/SHELL
tests/thelp.pl