aboutsummaryrefslogtreecommitdiff
path: root/tests/test_files.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_files.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_files.sh')
-rwxr-xr-xtests/test_files.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/test_files.sh b/tests/test_files.sh
index 8686b6db..d770e2b6 100755
--- a/tests/test_files.sh
+++ b/tests/test_files.sh
@@ -15,7 +15,6 @@ XZDEC=../src/xzdec/xzdec
test -x "$XZ" || XZ=
test -x "$XZDEC" || XZDEC=
if test -z "$XZ$XZDEC"; then
- (exit 77)
exit 77
fi
@@ -25,7 +24,6 @@ do
:
else
echo "Good file failed: $I"
- (exit 1)
exit 1
fi
@@ -33,7 +31,6 @@ do
:
else
echo "Good file failed: $I"
- (exit 1)
exit 1
fi
done
@@ -42,13 +39,11 @@ for I in "$srcdir"/files/bad-*.xz
do
if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then
echo "Bad file succeeded: $I"
- (exit 1)
exit 1
fi
if test -n "$XZDEC" && "$XZDEC" "$I" > /dev/null 2>&1; then
echo "Bad file succeeded: $I"
- (exit 1)
exit 1
fi
done
@@ -57,7 +52,6 @@ done
I="$srcdir/files/bad-3-index-uncomp-overflow.xz"
if test -n "$XZ" && "$XZ" -l "$I" > /dev/null 2>&1; then
echo "Bad file succeeded with xz -l: $I"
- (exit 1)
exit 1
fi
@@ -67,7 +61,6 @@ do
:
else
echo "Good file failed: $I"
- (exit 1)
exit 1
fi
done
@@ -76,10 +69,8 @@ for I in "$srcdir"/files/bad-*.lzma
do
if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then
echo "Bad file succeeded: $I"
- (exit 1)
exit 1
fi
done
-(exit 0)
exit 0