tests: unpack-invalid: correct and clean up a test
authorJim Meyering <meyering@fb.com>
Thu, 9 Nov 2017 15:39:58 +0000 (07:39 -0800)
committerJim Meyering <meyering@fb.com>
Thu, 9 Nov 2017 15:39:58 +0000 (07:39 -0800)
commit15bd3ba5d514af6a307ecefb8d109b9a65067a88
tree082303fbeb543c6ccfad67ab2d83f4468a743c7d
parentaec36ae1f69121dd90aceee2323ccea6f5e5c77c
tests: unpack-invalid: correct and clean up a test

* tests/unpack-invalid: There was a logic error that would have
caused this test to ignore a failure if first iteration of the
loop set fail=1 and the second one reset it to 0.  Also, use
"returns_ 1 ...", to require an exit status of 1.
tests/unpack-invalid