]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests defs: one more environment sanitization (corner case)
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 3 May 2011 21:40:00 +0000 (23:40 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 3 May 2011 21:40:00 +0000 (23:40 +0200)
* tests/defs (am__using_gmake): Initialize.  The `using_gmake'
subroutine was using this variable for caching, but wasn't
initializing it, which could cause problems in the (admittedly
very unlikely) case in which it was pre-existent in the
environment.

ChangeLog
tests/defs

index 2ad40b9f5b46ac42c894e7f88205766cccc97c59..eda448ecc7b133b1e62c9e6d2b27de32958dde52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests defs: one more environment sanitization (corner case)
+       * tests/defs (am__using_gmake): Initialize.  The `using_gmake'
+       subroutine was using this variable for caching, but wasn't
+       initializing it, which could cause problems in the (admittedly
+       very unlikely) case in which it was pre-existent in the
+       environment.
+
 2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        tests: add forgotten test scripts to $(TESTS)
index d85abf080470a27fd1b6ecd676cd41fcbefc3bd3..44c5b3b5aaa0ac563d985d164f32046f15af69e1 100644 (file)
@@ -190,6 +190,7 @@ using_gmake ()
       Exit 99;;
   esac
 }
+am__using_gmake="" # Avoid interferences from the environment.
 
 commented_sed_unindent_prog='
   /^$/b                    # Nothing to do for empty lines.