From: Dagfinn Ilmari Mannsåker Date: Mon, 21 Oct 2013 17:36:20 +0000 (+0100) Subject: Fix t/23dumpmore on perl 5.8.8 and earlier X-Git-Tag: 0.07036_03~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76e9a92a87d9a1f70179288c12f21a92a266d8dc;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Fix t/23dumpmore on perl 5.8.8 and earlier /m isn't honoured for $ when matching a pre-compiled regex (qr//), so just drop the anchoring --- diff --git a/Changes b/Changes index 122d573..02e9bca 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Perl extension DBIx::Class::Schema::Loader - Restore support for PostgreSQL 8.3 (RT#87291) + - Fix t/23dumpmore on perl 5.8.8 and earlier 0.07036_02 2013-09-25 - Skip many_to_many bridges involving might_have relationships diff --git a/t/23dumpmore.t b/t/23dumpmore.t index 07b1bc1..b7b0da1 100644 --- a/t/23dumpmore.t +++ b/t/23dumpmore.t @@ -364,7 +364,7 @@ $t->dump_test( ], regexes => { 'Result/MySchema/Foo' => [ - qr/^package DBICTest::DumpMore::1::Result::MySchema::Foo;$/m, + qr/^package DBICTest::DumpMore::1::Result::MySchema::Foo;/m, qr/^\Q__PACKAGE__->table("my_schema.foo");\E/m, # the has_many relname should not have the schema in it, but the class should qr/^__PACKAGE__->has_many\(\n "bars",\n "DBICTest::DumpMore::1::Result::MySchema::Bar"/m, @@ -392,7 +392,7 @@ $t->dump_test( ], regexes => { 'Result/MySchema/Floop' => [ - qr/^package DBICTest::DumpMore::1::Result::MySchema::Floop;$/m, + qr/^package DBICTest::DumpMore::1::Result::MySchema::Floop;/m, qr/^\Q__PACKAGE__->table("my_schema.foo");\E/m, ], },