From 8724637093324f6fcadca663c97cad8b6e6ef61a Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 6 Dec 2023 01:17:56 -0500 Subject: [PATCH] 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. --- tests/stress.at | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } ]) -- 2.43.2