2007-12-12 Eric Blake <ebb9@byu.net>
+ Fix some whitespace tests on cygwin.
+ * tests/tools.at (autom4te and whitespace in file names): Restore
+ font-lock. Create $TMPDIR before it might be used.
+
Fix spurious testsuite failure with M4 1.4.11.
* tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
x=
export x
rm -f a b
-# the first one omits special characters that are not w32 safe.
+# the first one omits special characters and trailing spaces,
+# which are not w32 safe.
for funny in \
- 'with funny '\'' $x & #! name ' \
- 'with funny \ '\'' \'\'' " <a >b * ? name '
+ 'with funny '\'' $x & #! name' \
+ 'with funny \ '\'' \'\'' " <a >b * ? name ' # "restore font-lock
do
file=" file $funny"
outfile="$file out "
TMPDIR=" tmp$dir"
export TMPDIR
+ # skip if we cannot create such a file or directory
+ AT_CHECK([mkdir "$dir" "$cachedir" "$TMPDIR" && touch "$file" || exit 77])
+
cat >"$file" <<'END'
[m4@&t@_include(foo.m4)
m4@&t@_divert(0)d@&t@nl
FOO]
END
- # skip if we cannot create such a file or directory
- AT_CHECK([mkdir "$dir" "$cachedir" "$TMPDIR" && test -f "$file" || exit 77])
cat >"$dir"/foo.m4 <<'END'
[m4@&t@_define([FOO], [bar])]
END