summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-13 23:20:11 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-13 23:20:11 +0000
commit31022a5a11db70290d5b3f56cd0dc18a4dd805d8 (patch)
treeabb8688d5e19a757b974fc2b96c6507694c9f056
parent3e6e4ea82051ddca64991170b80a80549242e4b5 (diff)
downloadperl-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.t4
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;