X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Ftxn_scope_guard.t;h=f79ff8dbdaccbd1bc0a9ec4de1886c4af614b06e;hb=cf320fd7d52a1c9d2e7d097e8b69c54db1453bec;hp=143f7141e6670d97869f30b9d99f9c7ed83aed39;hpb=471a5fddd105be3f526ab3be978dc74f6b990609;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/txn_scope_guard.t b/t/storage/txn_scope_guard.t index 143f714..f79ff8d 100644 --- a/t/storage/txn_scope_guard.t +++ b/t/storage/txn_scope_guard.t @@ -24,7 +24,7 @@ use DBICTest; }); $guard->commit; - } qr/No such column made_up_column .*? at .*?$fn line \d+/s, "Error propogated okay"; + } qr/No such column made_up_column .*? at .*?\Q$fn\E line \d+/s, "Error propogated okay"; ok(!$artist_rs->find({name => 'Death Cab for Cutie'}), "Artist not created"); @@ -104,7 +104,10 @@ use DBICTest; #$schema->storage->_dbh( $schema->storage->_dbh->clone ); die 'Deliberate exception'; - }, qr/Deliberate exception.+Rollback failed/s); + }, ($] >= 5.013008 ) + ? qr/Deliberate exception/s # temporary until we get the generic exception wrapper rolling + : qr/Deliberate exception.+Rollback failed/s + ); # just to mask off warning since we could not disconnect above $schema->storage->_dbh->disconnect;