From fcfea736866c9e2d37a21c886b0bfc59f1cd0ea5 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Mon, 8 Jul 2024 14:43:53 -0400 Subject: [PATCH] Add a FLAGS argument to AT_CHECK_M4SUGAR_TEXT. This is not actually used within the testsuite at present, but is handy for troubleshooting m4sugar tests. For instance, you can pass -v to a specific autom4te invocation and get told the underlying m4 invocation. * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT): Add fourth argument FLAGS which specifies additional command line arguments to pass to autom4te. --- tests/m4sugar.at | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/m4sugar.at b/tests/m4sugar.at index ba7191afc..7ea786b74 100644 --- a/tests/m4sugar.at +++ b/tests/m4sugar.at @@ -19,8 +19,8 @@ AT_BANNER([M4sugar.]) # along with this program. If not, see . -# AT_CHECK_M4SUGAR_TEXT(CODE, STDOUT, STDERR) -# ------------------------------------------- +# AT_CHECK_M4SUGAR_TEXT(CODE, STDOUT, STDERR, FLAGS) +# -------------------------------------------------- # Check that m4sugar CODE expands to STDOUT and emits STDERR. m4_define([AT_CHECK_M4SUGAR_TEXT], [ @@ -31,7 +31,7 @@ m4_divert_push([])[]dnl m4_divert_pop([]) ]]) -AT_CHECK_M4SUGAR([-o-],, [$2], [$3]) +AT_CHECK_M4SUGAR([$4 -o-],, [$2], [$3]) ])# AT_CHECK_M4SUGAR_TEXT -- 2.47.3