[Rt-devel] [PATCH] DBIx::SB: use_ok test fails if DBD::Oracle is not installed

Ruslan U. Zakirov Ruslan.Zakirov at acronis.com
Tue Dec 28 19:54:54 EST 2004


subj
-------------- next part --------------
=== 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" ); }


More information about the Rt-devel mailing list