misc fixes
p4raw-id: //depot/perl@2942
rm -f $(FIRSTMAKEFILE) $(FIRSTMAKEFILE).old
rm -f $(private)
rm -rf lib/auto
- rm -f lib/.exists
+ rm -f lib/.exists lib/*/.exists
rm -f h2ph.man pstruct
rm -rf .config
rm -f testcompile compilelog
open(try, '>Io.argv.tmp') or die "Can't open temp file: $!";
close try;
@ARGV = 'Io.argv.tmp';
-$^I = '';
+$^I = '.bak';
$/ = undef;
while (<>) {
s/^/ok 6\n/;
print while <try>;
close try;
-END { unlink 'Io.argv.tmp' }
+END { unlink 'Io.argv.tmp', 'Io.argv.tmp.bak' }
}
#print ">>>",$try,"<<<\n";
$ans1 = eval $try;
- if ("$ans1" eq $ans) { #bug!
+ if ($ans =~ m|^/(.*)$|) {
+ my $pat = $1;
+ if ($ans1 =~ /$pat/) {
+ print "ok $test\n";
+ }
+ else {
+ print "not ok $test\n";
+ print "# '$try' expected: /$pat/ got: '$ans1'\n";
+ }
+ }
+ elsif ("$ans1" eq $ans) { #bug!
print "ok $test\n";
} else {
print "not ok $test\n";
$Math::BigFloat::div_scale = 40
&fsqrt
+0:0
--1:NaN
--2:NaN
--16:NaN
--123.456:NaN
+-1:/^(0|NaN)$
+-2:/^(0|NaN)$
+-16:/^(0|NaN)$
+-123.456:/^(0|NaN)$
+1:1.
+1.44:1.2
+2:1.41421356237309504880168872420969807857
# cleanup - should this be in an END block?
unlink("lib/h2ph.ph");
+ unlink("_h2ph_pre.ph");
}