[Rt-devel] [PATCH] DBIx::SB: use_ok test fails if DBD::Oracle is
not installed
Jesse Vincent
jesse at bestpractical.com
Wed Dec 29 15:44:55 EST 2004
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 at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
--
More information about the Rt-devel
mailing list