[Bps-public-commit] SD branch, master, updated. 0.73-21-g4704b26
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Sun Nov 1 03:41:13 EST 2009
The branch, master has been updated
via 4704b26b53e46be83128098204dba771b7bb2f0b (commit)
from 069619d34ffce7500e6679ba8a85a7175f3a6198 (commit)
Summary of changes:
t/sd-redmine/basic.t | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 4704b26b53e46be83128098204dba771b7bb2f0b
Author: Sam Vilain <sam at vilain.net>
Date: Wed Oct 28 20:09:42 2009 -0700
redmine test: do require test inside BEGIN block
Otherwise the test fails due to a compile error
diff --git a/t/sd-redmine/basic.t b/t/sd-redmine/basic.t
index aab3663..6ad01a0 100644
--- a/t/sd-redmine/basic.t
+++ b/t/sd-redmine/basic.t
@@ -12,8 +12,10 @@ require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=" . $ENV{'PROPHET_REPO'} . "\n";
-unless ( eval { require Net::Redmine } ) {
- plan skip_all => 'You need Net::Redmine installed to run the tests';
+BEGIN{
+ unless ( eval { require Net::Redmine } ) {
+ plan skip_all => 'You need Net::Redmine installed to run the tests';
+ }
}
require 't/sd-redmine/net_redmine_test.pl';
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list