aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/bzcat.test4
-rw-r--r--tests/files/bzcat/overflow.bz2bin0 -> 993 bytes
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/bzcat.test b/tests/bzcat.test
index 4eacc684..ef1b07f5 100755
--- a/tests/bzcat.test
+++ b/tests/bzcat.test
@@ -6,6 +6,10 @@
[ -f testing.sh ] && . testing.sh
#testing "name" "command" "result" "infile" "stdin"
+testing "overflow" \
+ 'bzcat "$TOPDIR/files/bzcat/overflow.bz2" >/dev/null 2>/dev/null;
+ [ $? -eq 1 ] && echo good' "good\n" "" ""
+
echo "hello" > file
tar -cjf file.tar.bz2 file
# Get system bzcat
diff --git a/tests/files/bzcat/overflow.bz2 b/tests/files/bzcat/overflow.bz2
new file mode 100644
index 00000000..9ac7947b
--- /dev/null
+++ b/tests/files/bzcat/overflow.bz2
Binary files differ