diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-05 20:01:23 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-05 20:20:39 +0200 |
commit | 62f374b19e2c6cfd417df4a6781a8b8e0a338df4 (patch) | |
tree | 065c0d03c7a63eab1646feff76cb03d6f36b31cc /tests/runtests.pl | |
parent | 89b5680d8189fa7c58f20b273a982733b93d49ac (diff) |
tests: adjust file part behavior in test verify section.
When a <file> part is now specified with no contents at all, this
will actually verify that the specified file has no contents at all.
Previously file contents would be ignored.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 65dd9610b..ed234be23 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3499,7 +3499,7 @@ sub singletest { my $outputok; for my $partsuffix (('', '1', '2', '3', '4')) { my @outfile=getpart("verify", "file".$partsuffix); - if(@outfile) { + if(@outfile || partexists("verify", "file".$partsuffix) ) { # we're supposed to verify a dynamically generated file! my %hash = getpartattr("verify", "file".$partsuffix); |