Fix stackable tests on win32 by canonicalizing the path ahead of time
Andrew Rodland [Thu, 24 Feb 2011 20:58:38 +0000 (14:58 -0600)]
t/stackable.t

index b604ee8..973e4f7 100644 (file)
@@ -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;