summaryrefslogtreecommitdiff
path: root/tests/tools.at
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2022-07-06 16:05:42 -0400
committerZack Weinberg <zackw@panix.com>2022-07-06 16:05:42 -0400
commit5d8a59e337712be6b32b77e61fcc269093a80c66 (patch)
treed13f844b2c274787fc5d62c031ed90c82841c3e0 /tests/tools.at
parent76beb33bfe435a4434fd63920affe38620166d85 (diff)
downloadautoconf-5d8a59e337712be6b32b77e61fcc269093a80c66.tar.gz
testsuite: Handle `balanced ASCII quotes' correctly in m4 errors.
AT_CHECK_M4 was _documented_ to convert m4: cannot open `foo': No such file or directory to m4: cannot open 'foo': No such file or directory but the regexp that was supposed to do this didn’t work. Fix the regexp, and remove a workaround for the bug in one test (yes, we had code in our own testsuite to work around bugs in our own testsuite!) * tests/local.at (AT_CHECK_M4): Fix regex for “cannot open” messages. * tests/tools.at (autom4te cache): Remove workaround for buggy regex in AT_CHECK_M4.
Diffstat (limited to 'tests/tools.at')
-rw-r--r--tests/tools.at12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/tools.at b/tests/tools.at
index ce7efc33..bd225e04 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -98,20 +98,10 @@ AT_CHECK_M4SUGAR
# We moved a file: it should fail
mkdir sub
mv foo sub
-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], [],
+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.