From 4185b0b3193345f793ca7a5268fb67ab65e57655 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 26 Sep 2019 12:11:23 +0200 Subject: Make preprocessor nested parens test slightly trickier Macros should still be expanded within nested parentheses. Test it. --- tests/Kpreprocess | 2 +- testsuite.py | 2 +- 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) -- cgit v1.2.3