aboutsummaryrefslogtreecommitdiff
path: root/tests/test_scripts.sh
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-10-19 18:54:34 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-10-19 19:03:50 +0300
commitca8bf9d7c5a30be8ba1eeb106fd892f19e83ed09 (patch)
tree435c617ccbdc341ac05ca6e228c5c5c43d6a9f22 /tests/test_scripts.sh
parentTests: Fix a warning in test_memlimit.c when decoders are disabled. (diff)
downloadxz-ca8bf9d7c5a30be8ba1eeb106fd892f19e83ed09.tar.xz
Test: Remove the (exit 1) lines.
I suspect that I used these in the original version because Autoconf's manual describes that such a trick is needed in some specific situations for portability reasons. None of those situations listed on Autoconf 2.71 manual apply to these test scripts though so this cleans them up.
Diffstat (limited to '')
-rwxr-xr-xtests/test_scripts.sh6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test_scripts.sh b/tests/test_scripts.sh
index 48a9308a..baa9e249 100755
--- a/tests/test_scripts.sh
+++ b/tests/test_scripts.sh
@@ -16,7 +16,6 @@ XZGREP=../src/scripts/xzgrep
for i in XZ XZDIFF XZGREP; do
eval test -x "\$$i" && continue
- (exit 77)
exit 77
done
@@ -32,7 +31,6 @@ otherpostimage=$srcdir/files/good-1-lzma2-1.xz
status=$?
if test "$status" != 0 ; then
echo "xzdiff with no changes exited with status $status != 0"
- (exit 1)
exit 1
fi
@@ -40,7 +38,6 @@ fi
status=$?
if test "$status" != 1 ; then
echo "xzdiff with changes exited with status $status != 1"
- (exit 1)
exit 1
fi
@@ -48,7 +45,6 @@ fi
status=$?
if test "$status" != 2 ; then
echo "xzdiff with missing operand exited with status $status != 2"
- (exit 1)
exit 1
fi
@@ -68,9 +64,7 @@ if cmp -s "$srcdir/xzgrep_expected_output" xzgrep_test_output ; then
:
else
echo "unexpected output from xzgrep"
- (exit 1)
exit 1
fi
-(exit 0)
exit 0