From: Shlomi Fish Date: Thu, 29 Dec 2016 12:39:02 +0000 (+0200) Subject: Fix a bug with "cmake ." X-Git-Tag: fortune-mod-1.99.3~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dee88e0bdb60bc24273539c41cd3d2c38e4a122d;p=fortune-mod Fix a bug with "cmake ." Caused by relative pathname. --- diff --git a/fortune-mod/run-tests.pl b/fortune-mod/run-tests.pl index c589957..a93acb5 100644 --- a/fortune-mod/run-tests.pl +++ b/fortune-mod/run-tests.pl @@ -3,6 +3,7 @@ use strict; use warnings; +use File::Spec (); use Getopt::Long qw/ GetOptions /; my $src_dir; @@ -17,7 +18,7 @@ if (!defined $src_dir) die "--src-dir was not defined"; } -local $ENV{SRC_DIR} = $src_dir; +local $ENV{SRC_DIR} = File::Spec->rel2abs($src_dir); local $ENV{COOKIES} = $cookies_list_str; sub do_system