From: Kornel Benko Date: Fri, 25 May 2018 11:59:47 +0000 (+0200) Subject: Cmake batch tests: Check also if all expected files are created X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3401 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3319664d53f07b1272bb7ccffc10139169b2a7e0;p=features.git Cmake batch tests: Check also if all expected files are created --- diff --git a/lib/scripts/lyx_batch.pl.in b/lib/scripts/lyx_batch.pl.in index f5e9562a41..51c828a981 100644 --- a/lib/scripts/lyx_batch.pl.in +++ b/lib/scripts/lyx_batch.pl.in @@ -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);