Cmake batch tests: Check also if all expected files are created

This commit is contained in:
Kornel Benko 2018-05-25 13:59:47 +02:00
parent 1a36fee79d
commit 3319664d53

View File

@ -96,6 +96,9 @@ if (defined($Tests{$test}->{commands})) {
}
system1(@command);
for my $f (@created) {
die("File \"$f\" not created") if (! -e "$f");
}
die("Expected ($expected) and created ($created) files differ") if ($docompare && compare($expected, $created) != 0);
exit(0);