X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=blobdiff_plain;f=t%2Flib%2FApp%2FRgit%2FTestUtils.pm;fp=t%2Flib%2FApp%2FRgit%2FTestUtils.pm;h=f702b25f57559b9eb43f60b7ee4cf5bc5da3a692;hp=de5b808da0e38a4a9ea52cd6889d22d778043da8;hb=20ecc90aa6c17a07fd1200d0bf72d5918e53e106;hpb=a35a1fae17b8e75696ef1e5474aaa99222594a6a diff --git a/t/lib/App/Rgit/TestUtils.pm b/t/lib/App/Rgit/TestUtils.pm index de5b808..f702b25 100644 --- a/t/lib/App/Rgit/TestUtils.pm +++ b/t/lib/App/Rgit/TestUtils.pm @@ -3,10 +3,10 @@ package App::Rgit::TestUtils; use strict; use warnings; -use Cwd qw/abs_path/; -use File::Temp qw/tempfile/; -use File::Spec::Functions qw/curdir catfile/; -use POSIX qw/WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG/; +use Cwd qw/abs_path/; +use File::Temp qw/tempfile/; +use File::Spec (); # curdir, catfile +use POSIX qw/WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG/; BEGIN { no warnings 'redefine'; @@ -31,7 +31,7 @@ TRY: 'version', ); - my $git = catfile(curdir, qw/t bin git/); + my $git = File::Spec->catfile(File::Spec->curdir, qw/t bin git/); if ($^O eq 'MSWin32') { unless (-x $git) { $git .= '.bat';