diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-10 22:54:38 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-10 22:54:38 +0000 |
commit | be24517c7d6dbd51b4477cded03d9c0853e614ee (patch) | |
tree | e778b8b540c9ec19edafe715cd2790ad702d48f6 /t/TEST | |
parent | e7db9daff028408b8601c906fdcb79b8abc93c4b (diff) | |
download | perl-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-x | t/TEST | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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; |