[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.6-238-g2493f1c

Chia-liang Kao clkao at bestpractical.com
Tue Nov 30 08:54:40 EST 2010


The branch, 3.9-trunk has been updated
       via  2493f1ccf9cf88fc73f1a368c40e0ab86a594c05 (commit)
       via  fbbfa38c369a159d36e591b8eec8fd4699219f0d (commit)
      from  feaaaeefc97e6891f824e1013d945b9ea2b31aec (commit)

Summary of changes:
 lib/RT/Test.pm |    1 +
 lib/RT/Util.pm |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit fbbfa38c369a159d36e591b8eec8fd4699219f0d
Author: Chia-liang Kao <clkao at bestpractical.com>
Date:   Tue Nov 30 21:52:42 2010 +0800

    Fix up ba49022

diff --git a/lib/RT/Util.pm b/lib/RT/Util.pm
index b389d18..7eeaf78 100644
--- a/lib/RT/Util.pm
+++ b/lib/RT/Util.pm
@@ -76,9 +76,9 @@ sub safe_run_child (&) {
         unless ( defined $want ) {
             $code->();
         } elsif ( $want ) {
-            $code->();
+            @res = $code->();
         } else {
-            $code->();
+            @res = ( scalar $code->() );
         }
         1;
     } or do {

commit 2493f1ccf9cf88fc73f1a368c40e0ab86a594c05
Author: Chia-liang Kao <clkao at bestpractical.com>
Date:   Tue Nov 30 19:57:27 2010 +0800

    Run tests with DevelMode=0 by default

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 1334c21..55cfc78 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -226,6 +226,7 @@ sub bootstrap_config {
         or die "Couldn't open $tmp{'config'}{'RT'}: $!";
 
     print $config qq{
+Set( \$DevelMode, 0);
 Set( \$WebDomain, "localhost");
 Set( \$WebPort,   $port);
 Set( \$WebPath,   "");

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


More information about the Rt-commit mailing list