mirror of
https://git.tukaani.org/xz.git
synced 2026-10-31 03:14:56 +00:00
Tests: Fix test_files.sh failure with --disable-xz
Reported-by: Otto Kekäläinen
Fixes: 7f539d14484e ("Tests: Test that integer overflow in xz --list totals is caught")
Fixes: https://github.com/tukaani-project/xz/issues/244
This commit is contained in:
parent
318fbc79be
commit
3b1efb04d1
@ -134,7 +134,7 @@ fi
|
||||
# It should succeed when the file is passed twice to xz -l and
|
||||
# fail when passed thrice.
|
||||
I="$srcdir/files/bad-1-index-huge-uncomp.xz"
|
||||
if test -n "$XZ" && "$XZ" -l "$I" "$I" > /dev/null 2>&1; then
|
||||
if test -z "$XZ" || "$XZ" -l "$I" "$I" > /dev/null 2>&1; then
|
||||
:
|
||||
else
|
||||
echo "xz -l unexpectedly failed when the file was used twice: $I"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user