DBIx::SB: use_ok test fails if DBD::Oracle is not installed

subj

dbd_oracle_missing_failure_patch.txt (724 Bytes)

Thanks. Applied.On Wed, Dec 29, 2004 at 03:54:54AM +0300, Ruslan U. Zakirov wrote:

subj

=== t/00.load.t

— t/00.load.t (revision 5586)
+++ t/00.load.t (local)
@@ -6,7 +6,11 @@
BEGIN { use_ok( “DBIx::SearchBuilder::Handle::mysql” ); }
BEGIN { use_ok( “DBIx::SearchBuilder::Handle::mysqlPP” ); }
BEGIN { use_ok( “DBIx::SearchBuilder::Handle::ODBC” ); }
-BEGIN { use_ok( “DBIx::SearchBuilder::Handle::Oracle” ); }
+BEGIN {
+SKIP: {

  • skip “DBD::Oracle is not installed”, 1 unless eval { require DBD::Oracle };
  • use_ok( “DBIx::SearchBuilder::Handle::Oracle” );
    +} }
    BEGIN { use_ok( “DBIx::SearchBuilder::Handle::Pg” ); }
    BEGIN { use_ok( “DBIx::SearchBuilder::Handle::Sybase” ); }
    BEGIN { use_ok( “DBIx::SearchBuilder::Handle::SQLite” ); }

Rt-devel mailing list
Rt-devel@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel