From: Florian Ragwitz Date: Mon, 1 Dec 2008 21:15:23 +0000 (+0000) Subject: Ignore C3 warnings on 5.10 when testing ensure_class_loaded. X-Git-Tag: 5.8000_04~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=c48e4d5362590abb81412d3d681c5c369ebcddac Ignore C3 warnings on 5.10 when testing ensure_class_loaded. --- diff --git a/t/unit_utils_load_class.t b/t/unit_utils_load_class.t index d23ca1c..4231ba7 100644 --- a/t/unit_utils_load_class.t +++ b/t/unit_utils_load_class.t @@ -16,7 +16,10 @@ BEGIN { use_ok("Catalyst::Utils") }; } my $warnings = 0; -$SIG{__WARN__} = sub { $warnings++ }; +$SIG{__WARN__} = sub { + return if $_[0] =~ /Subroutine (?:un|re|)initialize redefined at .*C3\.pm/; + $warnings++; +}; ok( !Class::MOP::is_class_loaded("TestApp::View::Dump"), "component not yet loaded" );