Workaround for Win32 and c3_mro.t (RT #26452, tested by Kenichi Ishigaki)
Brian Cassidy [Wed, 7 May 2008 20:10:08 +0000 (20:10 +0000)]
Changes
t/c3_mro.t

diff --git a/Changes b/Changes
index 66ea77e..75648c8 100644 (file)
--- a/Changes
+++ b/Changes
@@ -9,6 +9,7 @@
         - POD fix, IO::FileHandle => IO::Handle (RT #35690)
         - Fix grammar on welcome page (RT #33236)
         - Fix for Path('0') handling (RT #29334)
+        - Workaround for Win32 and c3_mro.t (RT #26452, tested by Kenichi Ishigaki)
 
 5.7012  2007-12-16 23:44:00
         - Fix uri_for()'s and uri_with()'s handling of multibyte chars
index 5d6b306..c731202 100644 (file)
@@ -11,6 +11,10 @@ plan skip_all => "This test requires Class::C3" if $@;
 # Get a list of all Catalyst:: packages in blib via M::P::O
 my @cat_mods;
 {
+  # problem with @INC on win32, see:
+  # http://rt.cpan.org/Ticket/Display.html?id=26452
+  if ($^O eq 'MSWin32') { require Win32; Win32::GetCwd(); }
+
   local @INC = grep {/blib/} @INC;
   @cat_mods = (
     'Catalyst',