]> git.lyx.org Git - features.git/commitdiff
Cmake export tests: Make test fail if there is some non-existant sub-file
authorKornel Benko <kornel@lyx.org>
Thu, 26 Oct 2017 19:48:33 +0000 (21:48 +0200)
committerKornel Benko <kornel@lyx.org>
Thu, 26 Oct 2017 19:48:33 +0000 (21:48 +0200)
development/autotests/useSystemFonts.pl

index 58006b097e1cdb55d4696fc0c9d15a51f8da90da..61eee4dd1ad2f873de5a94b138ca45edf443dc04 100644 (file)
@@ -252,6 +252,13 @@ sub interpretedCopy($$$$)
              $res += $res1;
            }
          }
+         else {
+           if (! -e "$f") {
+             # Non relative (e.g. with absolute path) file should exist
+             print "File $f not found\n";
+             diestack("");
+           }
+         }
        }
        if ($foundrelative) {
          $rF->[$fidx] = join($separator, @{$filelist});