diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-13 23:20:11 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-13 23:20:11 +0000 |
commit | 31022a5a11db70290d5b3f56cd0dc18a4dd805d8 (patch) | |
tree | abb8688d5e19a757b974fc2b96c6507694c9f056 | |
parent | 3e6e4ea82051ddca64991170b80a80549242e4b5 (diff) | |
download | perl-31022a5a11db70290d5b3f56cd0dc18a4dd805d8.tar.gz |
Use File::Spec (needs Thomas Wegner's upcoming patch
for File::Spec::Mac::catfile)
p4raw-id: //depot/perl@12433
-rw-r--r-- | lib/h2xs.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/h2xs.t b/lib/h2xs.t index 8ec241a37f..912edae66b 100644 --- a/lib/h2xs.t +++ b/lib/h2xs.t @@ -16,7 +16,7 @@ BEGIN { # use strict; # we are not really testing this use File::Path; # for cleaning up with rmtree() use Test; - +use File::Spec; my $extracted_program = '../utils/h2xs'; # unix, nt, ... if ($^O eq 'VMS') { $extracted_program = '[-.utils]h2xs.com'; } @@ -162,7 +162,7 @@ while (my ($args, $version, $expectation) = splice @tests, 0, 3) { } foreach my $leaf ("$name.pm", 'Makefile.PL') { - my $file = ($^O eq 'MacOS') ? ":$name:$leaf" : "$name/$leaf"; + my $file = File::Spec->catfile($name, $leaf); if (ok (open (FILE, $file), 1, "open $file")) { my $match = qr/use $version;/; my $found; |