Subject: | t/28array_bind.t and t/31lob.t may call plan() twice |
Date: | Thu, 14 Oct 2010 14:04:17 -0700 |
To: | <bug-DBD-Oracle [...] rt.cpan.org> |
From: | "Jan Dubois" <jand [...] activestate.com> |
Both these tests use a line like this:
use Test::More tests => 12;
but then later on may still decide to skip all tests with e.g.
plan skip_all => "Not connected to oracle" if not $dbh;
This doesn't skip the test but will actually generate a failure.
The fix is simply to move the regular plan() call beyond the
point where the whole test still may need to be skipped (there
are lots of other tests in t/* that already do this correctly).
Cheers,
-Jan