mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Tests: Test --single-stream can decompress bad-3-corrupt_lzma2.xz.
The first stream in this file is valid, so this tests that xz properly stops after decompressing it.
This commit is contained in:
parent
a67dcce610
commit
3ec6dfd656
1 changed files with 11 additions and 0 deletions
|
@ -149,6 +149,17 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Test that --single-stream can decompress bad-3-corrupt_lzma2.xz.
|
||||||
|
# The first Stream in this file should decompress without errors.
|
||||||
|
# This file cannot be decompressed with xzdec.
|
||||||
|
I="$srcdir/files/bad-3-corrupt_lzma2.xz"
|
||||||
|
if test -z "$XZ" || "$XZ" -dc --single-stream $NO_WARN "$I" > /dev/null; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
echo "Good first Stream failed xz with --single-stream: $I"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#########
|
#########
|
||||||
# .lzma #
|
# .lzma #
|
||||||
|
|
Loading…
Reference in a new issue