summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-09-26 12:11:23 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-09-26 12:11:23 +0200
commit4185b0b3193345f793ca7a5268fb67ab65e57655 (patch)
tree3df2874db176cab01312c6d6f14b531b8bdf5577
parentf877b16b3432a2f68a7079877370cce3fe47918f (diff)
Make preprocessor nested parens test slightly trickier
Macros should still be expanded within nested parentheses. Test it.
-rw-r--r--tests/Kpreprocess2
-rw-r--r--testsuite.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Kpreprocess b/tests/Kpreprocess
index f9aca10..283a988 100644
--- a/tests/Kpreprocess
+++ b/tests/Kpreprocess
@@ -123,7 +123,7 @@ shell-stderr-res := $(shell,echo message on stderr >&2)
# Nested parens in macro call. Should give a single argument. Test it with
# $(shell) to get a free argument number check.
-parens-res = pre-$(shell,echo '(a,b,(c,d),e)')-post
+parens-res = pre-$(shell,echo '(a,$(b-char),(c,d),e)')-post
# Expands to the current location
location-res := $(filename):$(lineno)
diff --git a/testsuite.py b/testsuite.py
index a29f815..1b6954b 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -2547,7 +2547,7 @@ config PRINT_ME_TOO
verify_variable("shell-stderr-res", "", "", False)
verify_variable("parens-res",
- "pre-$(shell,echo '(a,b,(c,d),e)')-post",
+ "pre-$(shell,echo '(a,$(b-char),(c,d),e)')-post",
"pre-(a,b,(c,d),e)-post",
True)