From 50779dda7ace5a7c0cb5f22dc2b79a276ad51413 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 31 Mar 2019 11:34:14 +0200 Subject: [PATCH] Cmake export tests: Use absolute paths for subfiles inside the source dir The testfile is inside the build dir, so no relative path to the source dir should be alloved. --- development/autotests/useSystemFonts.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/development/autotests/useSystemFonts.pl b/development/autotests/useSystemFonts.pl index 12c9850765..8beb94cc0f 100644 --- a/development/autotests/useSystemFonts.pl +++ b/development/autotests/useSystemFonts.pl @@ -258,8 +258,10 @@ sub interpretedCopy($$$$) } } } - if ($foundrelative) { + if ($foundrelative && $rStatus->{"filetype"} ne "prefix_for_list") { # The result can be relative too + # but, since prefix_for_list does no copy, we have to use absolute paths + # to address files inside the source dir my @rel_list = (); for my $fr (@{$filelist}) { push(@rel_list, File::Spec->abs2rel($fr, $destdir)); -- 2.39.2