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=12c4592f0019ff7c8e5d302e66452c75fcd881ad;hpb=c264816e2877d684b9eed88e29868b6efea3c92c;p=catagits%2FCatalyst-Controller-WrapCGI.git diff --git a/t/lib/TestCGIBin/Controller/CGIHandler.pm b/t/lib/TestCGIBin/Controller/CGIHandler.pm index 12c4592..3092f40 100644 --- a/t/lib/TestCGIBin/Controller/CGIHandler.pm +++ b/t/lib/TestCGIBin/Controller/CGIHandler.pm @@ -2,10 +2,22 @@ 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"; +} + # 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