[Bps-public-commit] r14325 - in Prophet/branches/history: .

jesse at bestpractical.com jesse at bestpractical.com
Sun Jul 20 18:54:38 EDT 2008


Author: jesse
Date: Sun Jul 20 18:54:37 2008
New Revision: 14325

Modified:
   Prophet/branches/history/   (props changed)
   Prophet/branches/history/lib/Prophet/Test.pm

Log:
 r40253 at 68-246-244-17:  jesse | 2008-07-20 15:47:50 -0700
 * Thew new test harness improvements broke when we said we expected 'undef' as test value


Modified: Prophet/branches/history/lib/Prophet/Test.pm
==============================================================================
--- Prophet/branches/history/lib/Prophet/Test.pm	(original)
+++ Prophet/branches/history/lib/Prophet/Test.pm	Sun Jul 20 18:54:37 2008
@@ -183,8 +183,9 @@
     my $ret = run3 [ @cmd, @$arg ], undef, _mk_cmp_closure( $exp_stdout, $stdout_err ),    # stdout
         _mk_cmp_closure( $exp_stderr, $stdout_err );                                       # stderr
 
-    for (@$exp_stdout) {
-        push @$stdout_err, "got nothing, expected: $_";
+    for my $line(@$exp_stdout) {
+        next if !defined $line;
+        push @$stdout_err, "got nothing, expected: $line";
     }
 
     my $test_name = join( ' ', $msg ? "$msg:" : '', $script, @$arg );



More information about the Bps-public-commit mailing list