[DTrace-devel] [PATCH] test: replace gawk-specific function with more generic function
Eugene Loh
eugene.loh at oracle.com
Mon May 22 17:57:19 UTC 2023
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
but what form of match() does one mean? If it's the "third optional
argument", perhaps one could say so explicitly.
On 5/22/23 13:10, Kris Van Hees via DTrace-devel wrote:
> The match(s, t, arr) form of the match function is specific to GAWK
> and is thus best avoided in favour of the more generic split function
> split(s, arr, t).
>
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
> runtest.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/runtest.sh b/runtest.sh
> index b1f1dced..eafb16d2 100755
> --- a/runtest.sh
> +++ b/runtest.sh
> @@ -1548,7 +1548,7 @@ else
> }
> /: X?(FAIL|PASS|SKIP).*after ([0-9]*) reinvocations/
> {
> - match($0, /after ([0-9]*) reinvocations/, reinvokes);
> + split($0, reinvokes, /after ([0-9]*) reinvocations/);
> count["REINVOKES"] += reinvokes[1];
> }
> END {
More information about the DTrace-devel
mailing list