[Bps-public-commit] r15375 - in sd/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Fri Aug 22 11:27:18 EDT 2008


Author: sartak
Date: Fri Aug 22 11:27:07 2008
New Revision: 15375

Modified:
   sd/trunk/   (props changed)
   sd/trunk/t/sd-rt.t

Log:
 r70225 at onn:  sartak | 2008-08-22 11:26:48 -0400
 use BEGIN to fail sooner instead of eval to plan later


Modified: sd/trunk/t/sd-rt.t
==============================================================================
--- sd/trunk/t/sd-rt.t	(original)
+++ sd/trunk/t/sd-rt.t	Fri Aug 22 11:27:07 2008
@@ -7,12 +7,15 @@
 
 use Test::More;
 use Path::Class;
-unless (eval 'use RT::Test; 1') {
-    diag $@;
-    plan skip_all => 'requires 3.7 or newer to run tests.';
+
+BEGIN {
+    unless (eval 'use RT::Test; 1') {
+        diag $@;
+        plan skip_all => 'requires 3.7 or newer to run tests.';
+    }
 }
 
-eval 'use Prophet::Test tests => 27';
+use Prophet::Test tests => 27;
 use App::SD::Test;
 
 no warnings 'once';



More information about the Bps-public-commit mailing list