* 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  |    9 +++++++++
 tests/defs |    1 +
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2ad40b9..eda448e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-05-03  Stefano Lattarini  <[email protected]>
 
+       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  <[email protected]>
+
        tests: add forgotten test scripts to $(TESTS)
        * tests/Makefile.am (TESTS): Added test scripts  man[678].test,
        which have been present on the filesystem and in the repository,
diff --git a/tests/defs b/tests/defs
index d85abf0..44c5b3b 100644
--- a/tests/defs
+++ b/tests/defs
@@ -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.
-- 
1.7.2.3


Reply via email to