Permalink
Browse files

Tweak style of non-zero exit and document in Changes

  • Loading branch information...
1 parent a32b6a4 commit 74b96e2137fcd930819c8905e36aa96042474b30 @theory theory committed Aug 21, 2009
Showing with 5 additions and 6 deletions.
  1. +3 −0 Changes
  2. +2 −6 bin/pg_prove
View
3 Changes
@@ -6,6 +6,9 @@ Revision history for pgTAP
* Fixed broken Perl detection in `Makefile`.
* Copied OS detection from Perl's `Configure` script to new script,
`getos.sh`. OS detection should now be much more accurate.
+* Fixed `pg_prove` to exit with non-zero status if tests failed, as it works
+ better in automated testing environments and consistent with `prove` (fix by
+ darrell).
0.22 2009-07-31T00:26:16
-------------------------
View
8 bin/pg_prove
@@ -127,12 +127,8 @@ my $return = $harness_class->new({
exec => \@command,
})->runtests( @{ $tests } );
-if ( $return->{'failed'} > 0 ) {
- exit 1;
-} else {
- exit 0;
-}
-
+# Exit with non-zero status if tests failed.
+exit 1 if $return->{failed};
__END__

0 comments on commit 74b96e2

Please sign in to comment.