1
0
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:
Lasse Collin 2026-09-09 22:37:17 +03:00
parent 318fbc79be
commit 3b1efb04d1
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -134,7 +134,7 @@ fi
# It should succeed when the file is passed twice to xz -l and # It should succeed when the file is passed twice to xz -l and
# fail when passed thrice. # fail when passed thrice.
I="$srcdir/files/bad-1-index-huge-uncomp.xz" 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 else
echo "xz -l unexpectedly failed when the file was used twice: $I" echo "xz -l unexpectedly failed when the file was used twice: $I"