Fix all test warnings
Tomas Doran [Sun, 22 Jan 2012 10:23:06 +0000 (10:23 +0000)]
t/live_component_controller_context_closure.t
t/psgi_file_testapp_engine_plackup_compat.t

index 767822d..7e111f3 100644 (file)
@@ -14,7 +14,7 @@ use FindBin;
 use lib "$FindBin::Bin/lib";
 
 BEGIN { $::setup_leakchecker = 1 }
-
+local $SIG{__WARN__} = sub { return if $_[0] =~ /Unhandled type: GLOB/; warn $_[0] };
 use Catalyst::Test 'TestApp';
 
 {
index 9af4910..3578c6c 100644 (file)
@@ -10,7 +10,7 @@ use TestApp;
 use HTTP::Request::Common;
 
 plan skip_all => "Catalyst::Engine::PSGI required for this test"
-    unless eval { require Catalyst::Engine::PSGI; 1; };
+    unless eval { local $SIG{__WARN__} = sub{}; require Catalyst::Engine::PSGI; 1; };
 
 my $warning;
 local $SIG{__WARN__} = sub { $warning = $_[0] };