projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
106a976
)
fix regular common tests
Rafael Kitover [Sun, 29 Nov 2009 05:03:34 +0000 (
05:03
+0000)]
lib/DBIx/Class/Schema/Loader/Base.pm
patch
|
blob
|
blame
|
history
t/lib/dbixcsl_common_tests.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema/Loader/Base.pm
b/lib/DBIx/Class/Schema/Loader/Base.pm
index
33dff58
..
e1387e9
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/Base.pm
+++ b/
lib/DBIx/Class/Schema/Loader/Base.pm
@@
-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 $@;
}
diff --git
a/t/lib/dbixcsl_common_tests.pm
b/t/lib/dbixcsl_common_tests.pm
index
54c4049
..
509ac66
100644
(file)
--- a/
t/lib/dbixcsl_common_tests.pm
+++ b/
t/lib/dbixcsl_common_tests.pm
@@
-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}) {