From d3579af38c4f2ec2b11159b0dbc2f93da9430c8b Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 12 Dec 2007 15:50:31 -0700 Subject: [PATCH] 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. Signed-off-by: Eric Blake --- ChangeLog | 4 ++++ tests/tools.at | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index bcf598a5..47cdf2eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-12-12 Eric Blake + 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. diff --git a/tests/tools.at b/tests/tools.at index 8c0794f4..e5f9ae8f 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -146,10 +146,11 @@ AT_SETUP([autom4te and whitespace in file names]) 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 \ '\'' \'\'' " b * ? name ' + 'with funny '\'' $x & #! name' \ + 'with funny \ '\'' \'\'' " b * ? name ' # "restore font-lock do file=" file $funny" outfile="$file out " @@ -158,13 +159,14 @@ do 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 -- 2.47.2