* 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 <ldv@altlinux.org>
Signed-off-by: Eric Blake <ebb9@byu.net>
+2010-01-21 Dmitry V. Levin <ldv@altlinux.org>
+
+ Fix test failure 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-20 Paolo Bonzini <bonzini@gnu.org>
Add recommendation on (not) unsetting IFS.
rm -f a b
for funny in \
'with funny '\'' $x & #! name ' \
- 'with funny \ '\'' \'\'' " <a >b * ? name '
+ 'with funny \ '\'' \'\'' " <a >b * ? name ' #"
do
funny=`func_sanitize_file_name "$funny"`
file=" file $funny"
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])
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