From: Dagfinn Ilmari Mannsåker Date: Wed, 21 Jan 2015 14:21:48 +0000 (+0000) Subject: Show relationship info on circular rel failure X-Git-Tag: 0.07043~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6331db282870a45464ce129b76b3d5ae99e1b71;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Show relationship info on circular rel failure I've seen this fail with bogus SQL on DB2 on Travis, but can't reproduce it. Let's at least get some info if it happens again. --- diff --git a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm index ef8479b..cbd6c1e 100644 --- a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm +++ b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm @@ -436,7 +436,11 @@ sub run_tests { $obj10_2->loader_test11( $obj11->id11() ); $obj10_2->update(); }; - is($@, '', 'No errors after eval{}'); + is($@, '', 'No errors after eval{}') + or do { + diag explain $class11->relationship_info('loader_test10'); + diag explain $class10->relationship_info('loader_test11'); + }; SKIP: { skip 'Previous eval block failed', 3