X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestCGIBin%2FController%2FCGIHandler.pm;h=3092f401589284469a92587f5c00bedac6e0932b;hb=9cd473644d9076cfc98c97e72731d5492e9ff7e2;hp=0e18ee690c828c8b42d878812ec2926f1f777b21;hpb=9cc2dd4cf91d00221ca404219404c1b9bfbf8a80;p=catagits%2FCatalyst-Controller-WrapCGI.git diff --git a/t/lib/TestCGIBin/Controller/CGIHandler.pm b/t/lib/TestCGIBin/Controller/CGIHandler.pm index 0e18ee6..3092f40 100644 --- a/t/lib/TestCGIBin/Controller/CGIHandler.pm +++ b/t/lib/TestCGIBin/Controller/CGIHandler.pm @@ -2,6 +2,13 @@ package TestCGIBin::Controller::CGIHandler; use parent 'Catalyst::Controller::CGIBin'; +# Turn off log for the non-zero exit test +sub auto : Private { + my ($self, $c) = @_; + $c->log->levels() unless $c->debug; + 1; +} + sub cgi_path { my ($self, $cgi) = @_; return "my-bin/$cgi"; @@ -10,7 +17,7 @@ sub cgi_path { # try out a forward sub dongs : Local Args(0) { my ($self, $c) = @_; - $c->forward('/cgihandler/CGI_path_test_pl'); + $c->forward('/cgihandler/CGI_path__test_pl'); } # try resolved forward