From 23249ef206ef23760e814cb9f8170e7ae93dabcc Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 27 Mar 2022 23:42:26 -0700 Subject: New header and macro. This provides a portable case statement implemented directly as switch on GNU Awk, and using other approaches on other Awks that do not have switch. --- testsuite.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testsuite.awk') diff --git a/testsuite.awk b/testsuite.awk index 2c9fd14..27e3561 100755 --- a/testsuite.awk +++ b/testsuite.awk @@ -21,7 +21,8 @@ function runtest(id, code, output, } if (failed) - printf("test %s failed (for cppawk = %s)\n", id, ENVIRON["cppawk"]) + printf("test %s in file '%s' failed (for cppawk = %s)\n", + id, FILENAME, ENVIRON["cppawk"]) close("script.sh") close("output") -- cgit v1.2.3