diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-03-07 04:48:29 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-03-07 04:48:29 +0000 |
commit | 23bb49fa8c98c39adab74ba793fe7dad073789c2 (patch) | |
tree | c90fa0db0ebecc88d32a2577eaa0f7cc7437045b /ext | |
parent | 71fbae4b4b3f337a0c2643cc859be9d389fd2e98 (diff) | |
download | perl-23bb49fa8c98c39adab74ba793fe7dad073789c2.tar.gz |
Upgrade to PathTools-3.17
p4raw-id: //depot/perl@27398
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Cwd/Cwd.xs | 2 | ||||
-rw-r--r-- | ext/Cwd/t/cwd.t | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ext/Cwd/Cwd.xs b/ext/Cwd/Cwd.xs index 4bcbf6021e..039adb93f6 100644 --- a/ext/Cwd/Cwd.xs +++ b/ext/Cwd/Cwd.xs @@ -409,7 +409,7 @@ PPCODE: } void -getcwd() +getcwd(...) PROTOTYPE: DISABLE PPCODE: { diff --git a/ext/Cwd/t/cwd.t b/ext/Cwd/t/cwd.t index 0b6edcdec6..4ec7b9ab5c 100644 --- a/ext/Cwd/t/cwd.t +++ b/ext/Cwd/t/cwd.t @@ -18,7 +18,7 @@ use lib File::Spec->catdir('t', 'lib'); use Test::More; require VMS::Filespec if $^O eq 'VMS'; -my $tests = 29; +my $tests = 30; # _perl_abs_path() currently only works when the directory separator # is '/', so don't test it when it won't work. my $EXTRA_ABSPATH_TESTS = ($Config{prefix} =~ m/\//) && $^O ne 'cygwin'; @@ -125,6 +125,13 @@ foreach my $func (qw(cwd getcwd fastcwd fastgetcwd)) { dir_ends_with( $result, $Test_Dir, "$func()" ); } +{ + # Some versions of File::Path (e.g. that shipped with perl 5.8.5) + # call getcwd() with an argument (perhaps by calling it as a + # method?), so make sure that doesn't die. + is getcwd(), getcwd('foo'), "Call getcwd() with an argument"; +} + # Cwd::chdir should also update $ENV{PWD} dir_ends_with( $ENV{PWD}, $Test_Dir, 'Cwd::chdir() updates $ENV{PWD}' ); my $updir = File::Spec->updir; |