Permalink
Browse files

prevent using same dir

  • Loading branch information...
1 parent 856433c commit 4a7bb95fb783bcccd0ebc9becfab4ef4a8cac1ae @punytan punytan committed May 3, 2012
Showing with 8 additions and 4 deletions.
  1. +4 −2 xt/100_eg_pl.t
  2. +4 −2 xt/101_eg_psgi.t
View
@@ -8,8 +8,10 @@ use IPC::Run qw(run timeout);
use File::Path qw(rmtree);
use Config;
-rmtree '.eg_cache';
-END{ rmtree '.eg_cache' }
+use t::lib::Util;
+
+rmtree(cache_dir);
+END{ rmtree(cache_dir) }
$ENV{PERL5LIB} = join $Config{path_sep}, @INC;
View
@@ -10,8 +10,10 @@ use Plack::Util;
use File::Path qw(rmtree);
-rmtree '.eg_cache';
-END{ rmtree '.eg_cache' }
+use t::lib::Util;
+
+rmtree(cache_dir);
+END{ rmtree(cache_dir) }
# supress debug log
local $ENV{MOJO_MODE} = 'production';

0 comments on commit 4a7bb95

Please sign in to comment.