diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-19 23:58:25 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-19 23:58:25 +0000 |
commit | a7da9a42f1696505415b30f979c4f52d77a60af6 (patch) | |
tree | 68b1c2a8e1a6bfbff7f73b6839347c56429a7952 /t | |
parent | 8e2a5ede8b376b26ad9633ee3274d204dafa4c50 (diff) | |
download | perl-a7da9a42f1696505415b30f979c4f52d77a60af6.tar.gz |
The test.third results were funnily named because of the
new test scheme.
p4raw-id: //depot/perl@10740
Diffstat (limited to 't')
-rwxr-xr-x | t/TEST | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -190,7 +190,8 @@ EOT or print "can't deparse '$deparse': $!.\n"; } elsif ($type eq 'perl') { - my $run = "./perl $testswitch $switch $utf $test |"; + my $perl = $ENV{PERL} || './perl'; + my $run = "$perl $testswitch $switch $utf $test |"; open(RESULTS,$run) or print "can't run '$run': $!.\n"; } else { @@ -250,9 +251,11 @@ EOT } if ($ENV{PERL_3LOG}) { my $tpp = $test; + $tpp =~ s:^../::; $tpp =~ s:/:_:g; $tpp =~ s:\.t$::; - rename("perl.3log", "perl.3log.$tpp"); + rename("perl.3log", "perl.3log.$tpp") || + die "rename: perl3.log to perl.3log.$tpp: $!\n"; } $next = $next - 1; if ($ok && $next == $max) { |