Skip to content

Commit 81f4026

Browse files
Ramsay Jonesgitster
authored andcommitted
t9700-perl-git.sh: Fix a test failure on Cygwin
The t/t9700/test.pl script uses method invocation syntax when using the Cwd module to determine the current working directory. This fails on cygwin, since cygwin perl specifically checks for any arguments to the cwd() function and croak()'s with the message "Usage: Cwd::cwd()". (In perl v5.8.8 distribution, see the file perl-5.8.8/cygwin/cygwin.c lines 139-157) In order to avoid the problem, we replace the method invocation syntax with a simple function call. Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 78d553b commit 81f4026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9700/test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
BEGIN { use_ok('Git') }
1414

1515
# set up
16-
our $abs_repo_dir = Cwd->cwd;
16+
our $abs_repo_dir = cwd();
1717
ok(our $r = Git->repository(Directory => "."), "open repository");
1818

1919
# config

0 commit comments

Comments
 (0)