dev  

[patch] Apache::Test #41239: t/TEST -ping does not return a valid return code to the calling shell

Fred Moyer
Mon, 20 Apr 2009 22:42:27 -0700

http://rt.cpan.org/Public/Bug/Display.html?id=41239

This patch as demonstrated in the RT ticket resolves the issue.
Thoughts?  Demonstrating documented behavior here on my test setup
(returning 1 return code to the shell).

Index: lib/Apache/TestRun.pm
===================================================================
--- lib/Apache/TestRun.pm       (revision 766391)
+++ lib/Apache/TestRun.pm       (working copy)
@@ -1173,6 +1173,7 @@
     }
     else {
         warning "no server is running on $name";
+        exit_perl(0);
     }

     return $exit; #means call exit() if true

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org
For additional commands, e-mail: dev-h...@perl.apache.org