projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
db3b941
)
perl 5.003_04: lib/Test/Harness.pm
Perl 5 Porters [Thu, 29 Aug 1996 01:53:45 +0000 (
01:53
+0000)]
Add a return value to runtests - non-zero if all tests ran ok,
zero otherwise.
lib/Test/Harness.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Test/Harness.pm
b/lib/Test/Harness.pm
index
387c40c
..
7a16424
100644
(file)
--- a/
lib/Test/Harness.pm
+++ b/
lib/Test/Harness.pm
@@
-168,6
+168,8
@@
sub runtests {
}
}
printf("Files=%d, Tests=%d, %s\n", $files, $totmax, timestr($t_total, 'nop'));
+
+ return ($bad == 0 && $totmax) ;
}
sub corestatus {