[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. 6ea7cc2620d50f68f2523f758e6bf8d1af892126

jesse jesse at bestpractical.com
Sun Jan 25 20:46:27 EST 2009


The branch, master has been updated
       via  6ea7cc2620d50f68f2523f758e6bf8d1af892126 (commit)
      from  166cc47360fe61fc6c6371c362933d48037190c1 (commit)

Summary of changes:
 lib/Prophet/Test.pm |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 6ea7cc2620d50f68f2523f758e6bf8d1af892126
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Jan 25 20:46:14 2009 -0500

    Unsure how these test functions got broken

diff --git a/lib/Prophet/Test.pm b/lib/Prophet/Test.pm
index da0a37c..48dbdf3 100644
--- a/lib/Prophet/Test.pm
+++ b/lib/Prophet/Test.pm
@@ -320,15 +320,15 @@ sub run_output_matches_unordered {
     # in order to not force an ordering on the output, we sort both
     # the expected and received output before comparing them
     my $sorted_exp_out = [sort @$stdout];
-    my $sorted_exp_err = [sort @$stderr];
+    my $sorted_exp_err = [sort @{$stderr||[]} ];
 
     # compare and put errors into $error
     my $error = [];
     my $check_exp_out = _mk_cmp_closure($sorted_exp_out, $error);
     my $check_exp_err = _mk_cmp_closure($sorted_exp_err, $error);
 
-    map { $check_exp_out->($_) } sort split(/\n/,$$out);
-    map { $check_exp_err->($_) } sort split(/\n/,$$err);
+    map { $check_exp_out->($_) } sort split(/\n/,$out);
+    map { $check_exp_err->($_) } sort split(/\n/,$err);
 
     _check_cmp_closure_output($cmd, $msg, $args, $sorted_exp_out, $error);
 }

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list