]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - t/lib/App/Rgit/TestUtils.pm
Make the path to the git executable absolute in App::Rgit::Config->new
[perl/modules/rgit.git] / t / lib / App / Rgit / TestUtils.pm
index dcc83390393be53dab6d0fa3d966b1e187a6e23c..de5b808da0e38a4a9ea52cd6889d22d778043da8 100644 (file)
@@ -3,9 +3,10 @@ package App::Rgit::TestUtils;
 use strict;
 use warnings;
 
-use Cwd        qw/abs_path/;
-use File::Temp qw/tempfile/;
-use POSIX      qw/WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG SIGINT SIGQUIT/;
+use Cwd                   qw/abs_path/;
+use File::Temp            qw/tempfile/;
+use File::Spec::Functions qw/curdir catfile/;
+use POSIX                 qw/WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG/;
 
 BEGIN {
  no warnings 'redefine';
@@ -30,7 +31,7 @@ TRY:
    'version',
   );
 
-  my $git = 't/bin/git';
+  my $git = catfile(curdir, qw/t bin git/);
   if ($^O eq 'MSWin32') {
    unless (-x $git) {
     $git .= '.bat';