* tests/tools.at (autotools and whitespace in file names): Create
$TMPDIR before potential use like in other whitespace tests.

Signed-off-by: Dmitry V. Levin <[email protected]>
---
 ChangeLog      |    6 ++++++
 tests/tools.at |    5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index eaee96b..c02a100 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-19  Dmitry V. Levin <[email protected]>
+
+       Fix failure of test 38 when a shell uses $TMPDIR for here-documents.
+       * tests/tools.at (autotools and whitespace in file names): Create
+       $TMPDIR before potential use like in other whitespace tests.
+
 2010-01-19  Ralf Wildenhues  <[email protected]>
 
        config.status: consistent exit status with nonexistent config file 
input.
diff --git a/tests/tools.at b/tests/tools.at
index cea3a0f..d747a7d 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -1291,6 +1291,9 @@ do
   TMPDIR=" tmp$dir"
   export TMPDIR
 
+  # skip if we cannot create such a file or directory
+  AT_CHECK([mkdir "$dir" "$TMPDIR" && touch "$file.in" || exit 77])
+
   cat >"$file.in" <<'END'
 [AC_INIT(x,0)
 m4@&t...@_include([foo.m4])
@@ -1298,8 +1301,6 @@ AC_CONFIG_HEADERS([config.h:config.hin])
 AC_MACRO
 AC_OUTPUT]
 END
-  # skip if we cannot create such a file or directory
-  AT_CHECK([mkdir "$dir" "$TMPDIR" && test -f "$file.in" || exit 77])
   cat >"$dir"/foo.m4 <<'END'
 [AC_DEFUN([AC_MACRO], [echo hi])]
 END
-- 
ldv


Reply via email to