[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix failure of test 38 when a shell uses $TMPDIR for here-docume
From: |
Dmitry V. Levin |
Subject: |
[PATCH] Fix failure of test 38 when a shell uses $TMPDIR for here-documents. |
Date: |
Tue, 19 Jan 2010 19:03:31 +0300 |
* 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 <address@hidden>
---
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 <address@hidden>
+
+ 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 <address@hidden>
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@&address@hidden([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
- [PATCH] Fix failure of test 38 when a shell uses $TMPDIR for here-documents.,
Dmitry V. Levin <=