aboutsummaryrefslogtreecommitdiff
path: root/tests/test_compress.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_compress.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 'tests/test_compress.sh')
-rwxr-xr-xtests/test_compress.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test_compress.sh b/tests/test_compress.sh
index c88799e7..a6d07c6b 100755
--- a/tests/test_compress.sh
+++ b/tests/test_compress.sh
@@ -13,7 +13,6 @@
if test -x ../src/xz/xz ; then
:
else
- (exit 77)
exit 77
fi
@@ -21,7 +20,6 @@ fi
eval 'unset foo ; foo() { return 42; } ; foo'
if test $? != 42 ; then
echo "/bin/sh doesn't support functions, skipping this test."
- (exit 77)
exit 77
fi
@@ -30,7 +28,6 @@ test_xz() {
:
else
echo "Compressing failed: $* $FILE"
- (exit 1)
exit 1
fi
@@ -38,7 +35,6 @@ test_xz() {
:
else
echo "Decompressing failed: $* $FILE"
- (exit 1)
exit 1
fi
@@ -47,7 +43,6 @@ test_xz() {
else
echo "Decompressed file does not match" \
"the original: $* $FILE"
- (exit 1)
exit 1
fi
@@ -56,7 +51,6 @@ test_xz() {
:
else
echo "Decompressing failed: $* $FILE"
- (exit 1)
exit 1
fi
@@ -65,7 +59,6 @@ test_xz() {
else
echo "Decompressed file does not match" \
"the original: $* $FILE"
- (exit 1)
exit 1
fi
fi
@@ -85,13 +78,11 @@ case $FILE in
else
rm -f "$FILE"
echo "Failed to create the file '$FILE'."
- (exit 1)
exit 1
fi
;;
'')
echo "No test file was specified."
- (exit 1)
exit 1
;;
esac
@@ -129,5 +120,4 @@ do
test_xz $ARGS --lzma2=dict=64KiB,nice=32,mode=fast
done
-(exit 0)
exit 0