diff options
author | Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> | 1997-03-06 14:10:38 +0100 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-03-01 18:40:49 +1200 |
commit | 385588b3949e695a02c8ea1dd00fe789d6044de3 (patch) | |
tree | 3ee9ff5bd5715756399a102b042284ec5e88881b /t/TEST | |
parent | 1db9566f513791929f1e21e86206e5669d5b11c2 (diff) | |
download | perl-385588b3949e695a02c8ea1dd00fe789d6044de3.tar.gz |
HP-UX hint update
Quoting Chip Salzenberg:
:If you have a second, please look them over and see if anything
:important is out or anything broken is in.
I don't see my hint/hpux.sh patch. Here it is again (in unified format
this time):
p5p-msgid: 1479.857653838@lyon.grenoble.hp.com
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -7,19 +7,19 @@ $| = 1; -if ($#ARGV >= 0 && $ARGV[0] eq '-v') { +if ($ARGV[0] eq '-v') { $verbose = 1; shift; } chdir 't' if -f 't/TEST'; -die "You need to run \"make test\" first to set things up.\n" +die "You need to run \"make test\" first to set things up.\n" unless -e 'perl' or -e 'perl.exe'; $ENV{EMXSHELL} = 'sh'; # For OS/2 -if ($#ARGV == -1) { +if ($ARGV[0] eq '') { @ARGV = split(/[ \n]/, `echo base/*.t comp/*.t cmd/*.t io/*.t; echo op/*.t pragma/*.t lib/*.t`); } @@ -49,11 +49,11 @@ while ($test = shift) { chop($te); print "$te" . '.' x (18 - length($te)); if ($sharpbang) { - open(RESULTS,"./$test |") || (print "can't run.\n"); + open(results,"./$test |") || (print "can't run.\n"); } else { - open(SCRIPT,"$test") || die "Can't run $test.\n"; - $_ = <SCRIPT>; - close(SCRIPT); + open(script,"$test") || die "Can't run $test.\n"; + $_ = <script>; + close(script); if (/#!..perl(.*)/) { $switch = $1; if ($^O eq 'VMS') { @@ -63,13 +63,11 @@ while ($test = shift) { } else { $switch = ''; } - open(RESULTS,"./perl$switch $test |") || (print "can't run.\n"); + open(results,"./perl$switch $test |") || (print "can't run.\n"); } $ok = 0; $next = 0; - $files = 0; - $totmax = 0; - while (<RESULTS>) { + while (<results>) { if ($verbose) { print $_; } @@ -139,4 +137,4 @@ SHRDLU ($user,$sys,$cuser,$csys) = times; print sprintf("u=%g s=%g cu=%g cs=%g scripts=%d tests=%d\n", $user,$sys,$cuser,$csys,$files,$totmax); -exit ($bad != 0); +exit $bad != 0; |