From dee88e0bdb60bc24273539c41cd3d2c38e4a122d Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Thu, 29 Dec 2016 14:39:02 +0200 Subject: [PATCH] Fix a bug with "cmake ." Caused by relative pathname. --- fortune-mod/run-tests.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.1