X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F51threadtxn.t;h=a0e07bde0d69942c14ad5f150d7158f0723c82e4;hb=21b3c791548bca0d5aec48c8c2490b598f70d8a4;hp=e6cc3ac1540e963d38943dc1babab29e7fca3810;hpb=8d6b1478d8fa6f7c76e313ee72a72d5eb4c24d03;p=dbsrgits%2FDBIx-Class.git diff --git a/t/51threadtxn.t b/t/51threadtxn.t index e6cc3ac..a0e07bd 100644 --- a/t/51threadtxn.t +++ b/t/51threadtxn.t @@ -7,6 +7,11 @@ BEGIN { print "1..0 # SKIP your perl does not support ithreads\n"; exit 0; } + + if ($INC{'Devel/Cover.pm'}) { + print "1..0 # SKIP Devel::Cover does not work with threads yet\n"; + exit 0; + } } use threads; @@ -54,7 +59,7 @@ eval { $schema->resultset('CD')->create({ title => 'vacation in antarctica part 2', artist => 456, year => 1901 }); $parent_rs = $schema->resultset('CD')->search({ year => 1901 }); - $parent_rs->next; + is ($parent_rs->count, 2); }; ok(!$@) or diag "Creation eval failed: $@";