Author: dagolden
Date: Mon Jan 18 19:08:24 2010
New Revision: 13737

Modified:
   Module-Build/trunk/Changes
   Module-Build/trunk/t/properties/needs_compiler.t

Log:
fix failing t/properties/needs_compiler.t by localizing $ENV{CC}

Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes  (original)
+++ Module-Build/trunk/Changes  Mon Jan 18 19:08:24 2010
@@ -2,6 +2,11 @@
 
 0.36_02 - 
 
+ Bug fixes:
+
+ - Fix failures in t/properties/needs_compiler.t when $ENV{CC} is set
+   (RT#53296) [David Golden, adapted from patch by Jens Rehsack]
+
 0.3601 - Mon Dec 21 14:39:33 EST 2009
 
  Bug fixes:

Modified: Module-Build/trunk/t/properties/needs_compiler.t
==============================================================================
--- Module-Build/trunk/t/properties/needs_compiler.t    (original)
+++ Module-Build/trunk/t/properties/needs_compiler.t    Mon Jan 18 19:08:24 2010
@@ -106,6 +106,9 @@
 # falsify compiler and test error handling
 #--------------------------------------------------------------------------#
 
+# clear $ENV{CC} so we are sure to fail to find our fake compiler :-)
+local $ENV{CC};
+
 my $err = stderr_of( sub {
     $mb = $dist->new_from_context( config => { cc => "adfasdfadjdjk" } )
 });

Reply via email to