[Jifty-commit] r1956 - Jifty-DBI/trunk/t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Sep 13 12:50:13 EDT 2006


Author: ishigaki
Date: Wed Sep 13 12:50:03 2006
New Revision: 1956

Modified:
   Jifty-DBI/trunk/t/04memcached.t

Log:
make sure to skip 04memcached.t if you don't have Cache::Memcached

Modified: Jifty-DBI/trunk/t/04memcached.t
==============================================================================
--- Jifty-DBI/trunk/t/04memcached.t	(original)
+++ Jifty-DBI/trunk/t/04memcached.t	Wed Sep 13 12:50:03 2006
@@ -12,8 +12,10 @@
 my $total = scalar(@available_drivers) * TESTS_PER_DRIVER;
 # plan tests => $total;
 
-eval { use Cache::Memcached; };
-plan skip_all => 'Cache::Memcached not available' if $@;
+BEGIN {
+    eval { require Cache::Memcached; Cache::Memcached->import; };
+    plan skip_all => 'Cache::Memcached not available' if $@;
+}
 
 my $memd = Cache::Memcached->new({TestApp::Address->memcached_config});
 


More information about the Jifty-commit mailing list