diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-31 10:11:04 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-31 16:10:30 -0700 |
commit | 7b3aa70a7306af4f2db43763e565b16cd53aa7b8 (patch) | |
tree | aae2b0af29149ff9969f72671f40aa394bee0741 /tests/tools.at | |
parent | 6cfdc564894709122e71700ee95a71a4cb992a60 (diff) | |
download | autoconf-7b3aa70a7306af4f2db43763e565b16cd53aa7b8.tar.gz |
Port test to next m4 version
* tests/tools.at (autom4te cache):
Allow m4 to quote 'like this' as well as 'like this'.
Diffstat (limited to 'tests/tools.at')
-rw-r--r-- | tests/tools.at | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/tools.at b/tests/tools.at index 77d9c1e6..48cdd924 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -98,10 +98,20 @@ AT_CHECK_M4SUGAR # We moved a file: it should fail mkdir sub mv foo sub -AT_CHECK_M4SUGAR([], [1], [], +case `$M4 no/such/file 2>&1` in + *\`no/such/file*) + AT_CHECK_M4SUGAR([], [1], [], [m4:script.4s:1: cannot open `foo': No such file or directory autom4te: error: m4 failed with exit status: 1 ]) + ;; + *) + AT_CHECK_M4SUGAR([], [1], [], +[m4:script.4s:1: cannot open 'foo': No such file or directory +autom4te: error: m4 failed with exit status: 1 +]) + ;; +esac # But if we change the main file, then we should no longer complain of # missing files. |