develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33621 - branches/testparrottest/lib/Parrot

From:
jkeenan
Date:
December 7, 2008 10:06
Subject:
[svn:parrot] r33621 - branches/testparrottest/lib/Parrot
Message ID:
20081207180610.BBE94CB9AF@x12.develooper.com
Author: jkeenan
Date: Sun Dec  7 10:06:09 2008
New Revision: 33621

Modified:
   branches/testparrottest/lib/Parrot/Test.pm

Log:
Make syntax more readable.

Modified: branches/testparrottest/lib/Parrot/Test.pm
==============================================================================
--- branches/testparrottest/lib/Parrot/Test.pm	(original)
+++ branches/testparrottest/lib/Parrot/Test.pm	Sun Dec  7 10:06:09 2008
@@ -213,9 +213,8 @@
                 \$extra{todo}
                 if defined $extra{todo};
 
-            if ( $func =~ /_error_/ ) {
-                return _handle_error_output( $builder, $real_output, $expected, $desc )
-                    unless $exit_code;
+            if ( $func =~ /_error_/ and not $exit_code ) {
+                return _handle_error_output( $builder, $real_output, $expected, $desc );
             }
             elsif ($exit_code) {
                 $builder->ok( 0, $desc );



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About