From: Masahiro Chiba Date: Sat, 12 Dec 2009 22:52:04 +0000 (+0800) Subject: make temporary directory by myself X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FWeb-Session.git;a=commitdiff_plain;h=40cc4851b7505d5bf16e8d5392223b93ffb9591c make temporary directory by myself --- diff --git a/t/003_basic_w_file_store.t b/t/003_basic_w_file_store.t index 2d767b5..e5f6817 100644 --- a/t/003_basic_w_file_store.t +++ b/t/003_basic_w_file_store.t @@ -14,6 +14,9 @@ use Plack::Session::Store::File; use t::lib::TestSession; my $TMP = File::Spec->catdir('t', 'tmp'); +if ( !-d $TMP ) { + mkdir $TMP; +} t::lib::TestSession::run_all_tests( store => Plack::Session::Store::File->new( dir => $TMP ), diff --git a/t/004_basic_file_w_customs.t b/t/004_basic_file_w_customs.t index 90bfa0c..0683a79 100644 --- a/t/004_basic_file_w_customs.t +++ b/t/004_basic_file_w_customs.t @@ -19,6 +19,9 @@ use Plack::Session::Store::File; use t::lib::TestSession; my $TMP = File::Spec->catdir('t', 'tmp'); +if ( !-d $TMP ) { + mkdir $TMP; +} t::lib::TestSession::run_all_tests( store => Plack::Session::Store::File->new(