aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-05-29 11:32:29 +0100
committerRon Yorston <rmy@pobox.com>2024-05-29 11:32:29 +0100
commite46cb57b07b4b2c54e8219a5035ee4dff8a20a4c (patch)
treeabd63b9ad0ad81aa7d86bdd6334fee6560866509
parent11b3ae755cd67c298bc0a93b1a9872d1eecdbb00 (diff)
downloadbusybox-w32-e46cb57b07b4b2c54e8219a5035ee4dff8a20a4c.tar.gz
busybox-w32-e46cb57b07b4b2c54e8219a5035ee4dff8a20a4c.tar.bz2
busybox-w32-e46cb57b07b4b2c54e8219a5035ee4dff8a20a4c.zip
make: relax the test 'Return error if command fails'
The test 'Return error if command fails' needed an exit code of 2. POSIX only requires an exit code greater than 0.
-rwxr-xr-xtestsuite/make.tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests
index e4d635141..bac673178 100755
--- a/testsuite/make.tests
+++ b/testsuite/make.tests
@@ -90,7 +90,7 @@ cd .. || exit 1; rm -rf make.tempdir 2>/dev/null
90# There was a bug where the failure of a build command didn't result 90# There was a bug where the failure of a build command didn't result
91# in make returning a non-zero exit status. 91# in make returning a non-zero exit status.
92testing "make return error if command fails" \ 92testing "make return error if command fails" \
93 "make -f - >/dev/null 2>&1; echo \$?" "2\n" "" ' 93 "make -f - >/dev/null 2>&1; test \$? -gt 0 && echo OK" "OK\n" "" '
94target: 94target:
95 @exit 42 95 @exit 42
96' 96'