@INC = '../lib';
}
-use strict;
+# use strict; # we are not really testing this
use File::Path; # for cleaning up with rmtree()
my $extracted_program = '../utils/h2xs'; # unix, nt, ...
if ($^O eq 'VMS') { $extracted_program = '[-.utils]h2xs.com'; }
-if ($^O eq 'MacOS') { $extracted_program = ':::utils:h2xs'; }
+if ($^O eq 'MacOS') { $extracted_program = '::utils:h2xs'; }
if (!(-e $extracted_program)) {
print "1..0 # Skip: $extracted_program was not built\n";
exit 0;
# already merged).
if ($^O eq 'MacOS') {
$dupe = '';
- $lib = '-I::lib:';
+ $lib = '-x -I::lib:'; # -x overcomes MPW $Config{startperl} anomaly
}
# $name should differ from system header file names and must
# not already be found in the t/ subdirectory for perl.
$expectation =~ s/Writing //; # remove leader
foreach (split(/Writing /,$expectation)) {
chomp; # remove \n
- if ($^O eq 'MacOS') { $_ = ':' . join(':',split(/\//,$_)); }
+ if ($^O eq 'MacOS') {
+ $_ = ':' . join(':',split(/\//,$_));
+ $_ =~ s/$name:t:1.t/$name:t\/1.t/; # is this an h2xs bug?
+ }
print(((-e $_) ? "" : "not "), "ok $t\n");
$t++;
}
$expectation =~ s/Writing //; # remove leader
foreach (split(/Writing /,$expectation)) {
chomp; # remove \n
- if ($^O eq 'MacOS') { $_ = ':' . join(':',split(/\//,$_)); }
+ if ($^O eq 'MacOS') {
+ $_ = ':' . join(':',split(/\//,$_));
+ $_ =~ s/$name:t:1.t/$name:t\/1.t/; # is this an h2xs bug?
+ }
print(((-e $_) ? "" : "not "), "ok $t\n");
$t++;
}