aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite.awk
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-27 23:42:26 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-27 23:42:26 -0700
commit23249ef206ef23760e814cb9f8170e7ae93dabcc (patch)
tree89a6aa1b17ad433ddb739c65f85e840fd7d041d0 /testsuite.awk
parent0801dbaee02a811a412f22a71f9f869c90554f24 (diff)
downloadcppawk-23249ef206ef23760e814cb9f8170e7ae93dabcc.tar.gz
cppawk-23249ef206ef23760e814cb9f8170e7ae93dabcc.tar.bz2
cppawk-23249ef206ef23760e814cb9f8170e7ae93dabcc.zip
New <case.h> 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.
Diffstat (limited to 'testsuite.awk')
-rwxr-xr-xtestsuite.awk3
1 files changed, 2 insertions, 1 deletions
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")