]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - t/lib/App/Rgit/TestUtils.pm
Less namespace pollution
[perl/modules/rgit.git] / t / lib / App / Rgit / TestUtils.pm
index dcc83390393be53dab6d0fa3d966b1e187a6e23c..f702b25f57559b9eb43f60b7ee4cf5bc5da3a692 100644 (file)
@@ -5,7 +5,8 @@ use warnings;
 
 use Cwd        qw/abs_path/;
 use File::Temp qw/tempfile/;
-use POSIX      qw/WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG SIGINT SIGQUIT/;
+use File::Spec (); # 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 = File::Spec->catfile(File::Spec->curdir, qw/t bin git/);
   if ($^O eq 'MSWin32') {
    unless (-x $git) {
     $git .= '.bat';