Commit 3b1efb04 for xz

commit 3b1efb04d17c3a9ef7f473d73af13f1531428ffe
Author: Lasse Collin <lasse.collin@tukaani.org>
Date:   Wed Sep 9 22:37:17 2026 +0300

    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

diff --git a/tests/test_files.sh b/tests/test_files.sh
index fa02ecd7..9312de94 100755
--- a/tests/test_files.sh
+++ b/tests/test_files.sh
@@ -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"