[Bps-public-commit] Prophet branch, master, updated. ac4ec58a55a71057a7db1d1d1f03f9991402250a

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Aug 11 23:08:47 EDT 2009


The branch, master has been updated
       via  ac4ec58a55a71057a7db1d1d1f03f9991402250a (commit)
      from  b82d4837605ac5c03a411bc7ec9a421fdc8c891b (commit)

Summary of changes:
 t/aliases.t |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit ac4ec58a55a71057a7db1d1d1f03f9991402250a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Aug 12 11:08:35 2009 +0800

    fix t/aliases.t: keeping config filehandle always open makes windows cry

diff --git a/t/aliases.t b/t/aliases.t
index d9c8847..b11429c 100644
--- a/t/aliases.t
+++ b/t/aliases.t
@@ -6,7 +6,8 @@ use Prophet::Test tests => 68;
 use File::Temp qw/tempfile/;
 use Test::Script::Run;
 
-$ENV{'PROPHET_APP_CONFIG'} = (tempfile(UNLINK => !$ENV{PROPHET_DEBUG}))[1];
+( my $_fh, $ENV{'PROPHET_APP_CONFIG'} ) = tempfile(UNLINK => !$ENV{PROPHET_DEBUG});
+close $_fh; # or windows will cry :/
 diag("Using config file $ENV{PROPHET_APP_CONFIG}");
 
 use_ok('Prophet::CLI');

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list