6 use File::Slurp qw(slurp);
8 use make_dbictest_db_bad_comment_tables;
9 use dbixcsl_test_dir qw/$tdir/;
12 my $dump_path = "$tdir/dump";
15 package DBICTest::Schema::1;
16 use base qw/ DBIx::Class::Schema::Loader /;
17 __PACKAGE__->loader_options(
18 dump_directory => $dump_path,
23 DBICTest::Schema::1->connect($make_dbictest_db_bad_comment_tables::dsn);
28 my $foo = try { slurp("$dump_path/DBICTest/Schema/1/Result/Foo.pm") };
29 my $bar = try { slurp("$dump_path/DBICTest/Schema/1/Result/Bar.pm") };
31 like($foo, qr/Result::Foo\n/, 'No error from invalid comment tables');
33 END { rmtree($dump_path, 1, 1); }