diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/base/term.t | 2 | ||||
-rwxr-xr-x | t/io/tell.t | 4 | ||||
-rw-r--r-- | t/lib/dprof/V.pm | 5 | ||||
-rwxr-xr-x | t/op/flip.t | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/t/base/term.t b/t/base/term.t index 49df11fa31..061cd33b1e 100755 --- a/t/base/term.t +++ b/t/base/term.t @@ -48,5 +48,5 @@ else { die "/dev/null IS NOT A CHARACTER SPECIAL FILE!!!!\n" unless -c '/dev/null'; } -open(try, "../Configure") || (die "Can't open ../Configure."); +open(try, "harness") || (die "Can't open harness."); if (<try> ne '') {print "ok 7\n";} else {print "not ok 7\n";} diff --git a/t/io/tell.t b/t/io/tell.t index 560836d5e0..c840c9232a 100755 --- a/t/io/tell.t +++ b/t/io/tell.t @@ -9,7 +9,7 @@ $TST = 'tst'; $Is_Dosish = ($^O eq 'MSWin32' or $^O eq 'dos' or $^O eq 'os2' or $^O eq 'mint' or $^O eq 'cygwin'); -open($TST, '../Configure') || (die "Can't open ../Configure"); +open($TST, 'harness') || (die "Can't open harness"); binmode $TST if $Is_Dosish; if (eof(tst)) { print "not ok 1\n"; } else { print "ok 1\n"; } @@ -49,7 +49,7 @@ unless (eof) { print "not ok 13\n"; } else { print "ok 13\n"; } if ($. == 0) { print "not ok 14\n"; } else { print "ok 14\n"; } $curline = $.; -open(other, '../Configure') || (die "Can't open ../Configure"); +open(other, 'harness') || (die "Can't open harness: $!"); binmode other if $^O eq 'MSWin32'; { diff --git a/t/lib/dprof/V.pm b/t/lib/dprof/V.pm index cbdeca4eda..152cddc253 100644 --- a/t/lib/dprof/V.pm +++ b/t/lib/dprof/V.pm @@ -17,7 +17,10 @@ $dpp .= '.com' if $^O eq 'VMS'; print "\nperl: $perl\n" if $opt_v; if( ! -f $perl ){ die "Where's Perl?" } -if( ! -f $dpp ){ die "Where's dprofpp?" } +if( ! -f $dpp ) { + ($dpp = $^X) =~ s@(^.*)[/|\\].*@$1/dprofpp@; + die "Where's dprofpp?" if( ! -f $dpp ); +} sub dprofpp { my $switches = shift; diff --git a/t/op/flip.t b/t/op/flip.t index f66af27d4d..99b22eff94 100755 --- a/t/op/flip.t +++ b/t/op/flip.t @@ -17,7 +17,7 @@ if ($y eq '12E0123E0') {print "ok 7\n";} else {print "not ok 7\n";} @a = ('a','b','c','d','e','f','g'); -open(of,'../Configure'); +open(of,'harness') or die "Can't open harness: $!"; while (<of>) { (3 .. 5) && ($foo .= $_); } |