[Catalyst-commits] r12476 - trunk/Catalyst-Controller-WrapCGI/t
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sat Dec 26 17:58:25 GMT 2009
Author: caelum
Date: 2009-12-26 17:58:25 +0000 (Sat, 26 Dec 2009)
New Revision: 12476
Modified:
trunk/Catalyst-Controller-WrapCGI/t/cgibin.t
Log:
test %SIG preservation during compile
Modified: trunk/Catalyst-Controller-WrapCGI/t/cgibin.t
===================================================================
--- trunk/Catalyst-Controller-WrapCGI/t/cgibin.t 2009-12-26 16:48:23 UTC (rev 12475)
+++ trunk/Catalyst-Controller-WrapCGI/t/cgibin.t 2009-12-26 17:58:25 UTC (rev 12476)
@@ -7,12 +7,19 @@
use lib "$Bin/lib";
use Test::More;
-use Catalyst::Test 'TestCGIBin';
use HTTP::Request::Common;
+my %orig_sig;
+BEGIN { %orig_sig = %SIG; }
+
+use Catalyst::Test 'TestCGIBin';
+
# this should be ignored
$ENV{MOD_PERL} = "mod_perl/2.0";
+is_deeply \%SIG, \%orig_sig, '%SIG is preserved on compile';
+%SIG = %orig_sig;
+
my $response = request POST '/my-bin/path/test.pl', [
foo => 'bar',
bar => 'baz'
@@ -54,8 +61,6 @@
is($response->content, '/path/info',
'PATH_INFO works');
-my %orig_sig = %SIG;
-
ok request '/my-bin/sigs.pl';
is_deeply \%SIG, \%orig_sig, '%SIG is preserved';
More information about the Catalyst-commits
mailing list