autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Port test to next m4 version


From: Paul Eggert
Subject: [PATCH] Port test to next m4 version
Date: Tue, 31 Aug 2021 16:15:28 -0700

* tests/tools.at (autom4te cache):
Allow m4 to quote 'like this' as well as 'like this'.
---
 tests/tools.at | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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.
-- 
2.31.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]