From: Nick Bowler Date: Wed, 6 Dec 2023 06:17:56 +0000 (-0500) Subject: tests: Try not to split fields in randomdecl sanity test. X-Git-Tag: v1.3~63 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/8724637093324f6fcadca663c97cad8b6e6ef61a tests: Try not to split fields in randomdecl sanity test. HP-UX 11 awk will simply exit with an error if any input line has more than 199 fields. To avoid this happening in the randomdecl sanity test, set FS to some garbage because we don't actually use any of the field variables in this script. --- diff --git a/tests/stress.at b/tests/stress.at index 002b966..1426062 100644 --- a/tests/stress.at +++ b/tests/stress.at @@ -64,7 +64,10 @@ m4_define([sanity_tests], [dnl m4_define([sanity_awk], [[/$1/ { found["$2"] = 1; } ]])AT_DATA([sanity.awk], -[m4_map([sanity_awk], [sanity_tests])dnl +[# We don't need any field splitting, so choose a character that does not +# appear in C code to avoid tripping over 199-field limit in HP-UX 11 awk. +BEGIN { FS = "@"; } +m4_map([sanity_awk], [sanity_tests])dnl END { for (k in found) print "FOUND", k; } ])