]> granicus.if.org Git - fortune-mod/commitdiff
Fix a bug with "cmake ."
authorShlomi Fish <shlomif@shlomifish.org>
Thu, 29 Dec 2016 12:39:02 +0000 (14:39 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Thu, 29 Dec 2016 12:39:02 +0000 (14:39 +0200)
Caused by relative pathname.

fortune-mod/run-tests.pl

index c589957c440961d13e4d6592248e476df1ab1acf..a93acb58c5fb036e07d73645991dc476ea90e7c4 100644 (file)
@@ -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