summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-02-10 22:54:38 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-10 22:54:38 +0000
commitbe24517c7d6dbd51b4477cded03d9c0853e614ee (patch)
treee778b8b540c9ec19edafe715cd2790ad702d48f6 /t/TEST
parente7db9daff028408b8601c906fdcb79b8abc93c4b (diff)
downloadperl-be24517c7d6dbd51b4477cded03d9c0853e614ee.tar.gz
Make TEST and UTEST more verbose in case something goes
wrong in running/compiling a script, suggested by Doug MacEachern. p4raw-id: //depot/perl@8764
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST13
1 files changed, 8 insertions, 5 deletions
diff --git a/t/TEST b/t/TEST
index 65b1aa4ef4..6237f9e10d 100755
--- a/t/TEST
+++ b/t/TEST
@@ -87,13 +87,16 @@ EOT
}
if ($type eq 'perl') {
- open(RESULTS,"./perl$switch $test |") or print "can't run.\n";
+ my $run = "./perl$switch $test |";
+ open(RESULTS,$run) or print "can't run '$run': $!.\n";
}
else {
- open(RESULTS, "./perl -I../lib ../utils/perlcc -o ./$test.plc ./$test "
- ." && ./$test.plc |")
- or print "can't compile.\n";
- unlink "./$test.plc";
+ my $compile =
+ "./perl -I../lib ../utils/perlcc -o ./$test.plc ./$test "
+ ." && ./$test.plc |";
+ open(RESULTS, $compile)
+ or print "can't compile '$compile': $!.\n";
+ unlink "./$test.plc";
}
$ok = 0;