]> git.lyx.org Git - features.git/commitdiff
Cmake batch tests: Check also if all expected files are created
authorKornel Benko <kornel@lyx.org>
Fri, 25 May 2018 11:59:47 +0000 (13:59 +0200)
committerKornel Benko <kornel@lyx.org>
Fri, 25 May 2018 11:59:47 +0000 (13:59 +0200)
lib/scripts/lyx_batch.pl.in

index f5e9562a41abfd1fbafa81a37164d1a47805a0f9..51c828a98199a81a95a1df16e04a73d9ee078de1 100644 (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);