fix regular common tests
Rafael Kitover [Sun, 29 Nov 2009 05:03:34 +0000 (05:03 +0000)]
lib/DBIx/Class/Schema/Loader/Base.pm
t/lib/dbixcsl_common_tests.pm

index 33dff58..e1387e9 100644 (file)
@@ -439,7 +439,11 @@ sub _load_external {
         or croak "Failed to close $real_inc_path: $!";
 
 # load the class too
-    do $real_inc_path;
+    {
+        # turn off redefined warnings
+        $SIG{__WARN__} = sub {};
+        do $real_inc_path;
+    }
     die $@ if $@;
 }
 
index 54c4049..509ac66 100644 (file)
@@ -118,7 +118,7 @@ sub setup_schema {
        is $file_count, 34, 'correct number of files generated';
        exit if $file_count != 34;
 
-       my $warn_count = 2;
+       my $warn_count = 0;
        $warn_count++ if grep /ResultSetManager/, @loader_warnings;
 
         if($self->{skip_rels}) {