X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F73oracle_blob.t;h=ae5a359cedd3a5111ac167337180a830352b1554;hb=39568b8ae8bbe3cf6b6873ce87a8fd925a539d64;hp=c94cec3a035eb033e58abae18973809cfd6a24f9;hpb=af1f4f842ae446a3339b92b33851ea80c928f17a;p=dbsrgits%2FDBIx-Class.git diff --git a/t/73oracle_blob.t b/t/73oracle_blob.t index c94cec3..ae5a359 100644 --- a/t/73oracle_blob.t +++ b/t/73oracle_blob.t @@ -56,7 +56,6 @@ for my $opt (@tryopt) { sub _run_blob_tests { SKIP: { -TODO: { my ($schema, $opt) = @_; my %binstr = ( 'small' => join('', map { chr($_) } ( 1 .. 127 )) ); $binstr{'large'} = $binstr{'small'} x 1024; @@ -107,7 +106,7 @@ TODO: { ok (try { $objs[0]->blob }||'' eq "blob:$str", 'blob inserted/retrieved correctly'); ok (try { $objs[0]->clob }||'' eq "clob:$str", 'clob inserted/retrieved correctly'); - TODO: { + { local $TODO = '-like comparison on blobs not tested before ora 10 (fails on 8i)' if $schema->storage->_server_info->{normalized_dbms_version} < 10; @@ -157,7 +156,7 @@ TODO: { } $schema->storage->debug ($orig_debug); -}} +} do_clean ($dbh); } @@ -186,10 +185,9 @@ sub do_clean { } END { - for ($dbh) { - next unless $_; + if ($dbh) { local $SIG{__WARN__} = sub {}; - do_clean($_); - $_->disconnect; + do_clean($dbh); + undef $dbh; } }