[Bps-public-commit] r14392 - in Prophet/trunk: .

jesse at bestpractical.com jesse at bestpractical.com
Tue Jul 22 14:04:08 EDT 2008


Author: jesse
Date: Tue Jul 22 14:04:07 2008
New Revision: 14392

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

Log:
 r40258 at 31b (orig r14325):  jesse | 2008-07-20 15:54:37 -0700
  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/trunk/lib/Prophet/Test.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Test.pm	(original)
+++ Prophet/trunk/lib/Prophet/Test.pm	Tue Jul 22 14:04:07 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