[Rt-commit] rt branch, psgi, updated. rt-3.9.4-136-g26dda72

Shawn Moore sartak at bestpractical.com
Thu Oct 7 13:56:58 EDT 2010


The branch, psgi has been updated
       via  26dda7259da745995780d75f530af2ae9803993e (commit)
      from  7a87826e965ac158c22747c3be1a5cbfe03c5e86 (commit)

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

- Log -----------------------------------------------------------------
commit 26dda7259da745995780d75f530af2ae9803993e
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Oct 7 14:00:09 2010 -0400

    Undef warning guards for $ENV{'RT_TEST_WEB_HANDLER'}

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 8cfdf9f..c501fba 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -1099,7 +1099,7 @@ sub started_ok {
 
 
     $ENV{'RT_TEST_WEB_HANDLER'} = undef
-        if $rttest_opt{actual_server} && $ENV{'RT_TEST_WEB_HANDLER'} eq 'inline';
+        if $rttest_opt{actual_server} && ($ENV{'RT_TEST_WEB_HANDLER'}||'') eq 'inline';
     my $which = $ENV{'RT_TEST_WEB_HANDLER'} || 'standalone';
     my ($server, $variant) = split /\+/, $which, 2;
 
diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index ded0270..3af6494 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -176,7 +176,7 @@ sub get_warnings {
     my $self = shift;
 
     # FIXME: need psgi mw for stashed warnings
-    if ($self->isa('Test::WWW::Mechanize::PSGI') || $ENV{'RT_TEST_WEB_HANDLER'} eq 'plack') {
+    if ($self->isa('Test::WWW::Mechanize::PSGI') || ($ENV{'RT_TEST_WEB_HANDLER'}||'') eq 'plack') {
         Test::More::ok(1);
         return;
     }

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


More information about the Rt-commit mailing list