From: Andrew Rodland Date: Thu, 24 Feb 2011 20:58:38 +0000 (-0600) Subject: Fix stackable tests on win32 by canonicalizing the path ahead of time X-Git-Tag: 1.008004~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f694b8aab88c8eca9acb502493935a08d9860f3a;p=p5sagit%2Flocal-lib.git Fix stackable tests on win32 by canonicalizing the path ahead of time --- diff --git a/t/stackable.t b/t/stackable.t index b604ee8..973e4f7 100644 --- a/t/stackable.t +++ b/t/stackable.t @@ -6,10 +6,13 @@ use Cwd; plan tests => 19; +use local::lib (); + my $dir1 = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP => 1); -my $dir2 = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP => 1); +$dir1 = local::lib->ensure_dir_structure_for($dir1); -use local::lib (); +my $dir2 = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP => 1); +$dir2 = local::lib->ensure_dir_structure_for($dir2); my $prev_active = () = local::lib->active_paths;