X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/a52b40384eb58fc2d7c06c7d46d1c401cde19443..8e1fbe44dde847482ecdf54f97d31a5322a2fd92:/tests/broken-archives.tap diff --git a/tests/broken-archives.tap b/tests/broken-archives.tap new file mode 100644 index 0000000..3997ca3 --- /dev/null +++ b/tests/broken-archives.tap @@ -0,0 +1,27 @@ +#!/bin/sh +# +# 2ooM: The Master of Orion II Reverse Engineering Project +# Test that EOF when unpacking an archive is an error. +# Copyright © 2014 Nick Bowler +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +. "$srcdir/tests/util/test-init.sh" || exit 99 + +plan_ 1 +dx_create_testdir + +failed=false +$LBXTOOL -xf "$testdata/arch-trunc.lbx" || failed=true +command_ok_ "EOF handled in archive" -D TODO $failed