On Thu, 2024-06-13 at 16:20 +0100, Cupertino Miranda wrote: > This patch changes a few tests to make use of regular expressions. > Fixed tests otherwise fail when compiled with GCC. > > Signed-off-by: Cupertino Miranda <cupertino.miranda@xxxxxxxxxx> > Cc: jose.marchesi@xxxxxxxxxx > Cc: david.faust@xxxxxxxxxx > Cc: Yonghong Song <yonghong.song@xxxxxxxxx> > Cc: Eduard Zingerman <eddyz87@xxxxxxxxx> > Cc: Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> [...] The two tests below are __naked inline assembly, so there is no need to change alloc_insn for them. > SEC("sk_skb") > __description("bpf_map_lookup_elem(sockmap, &key)") > -__failure __msg("Unreleased reference id=2 alloc_insn=6") > +__failure __regex("Unreleased reference id=2 alloc_insn=[0-9]+") > __naked void map_lookup_elem_sockmap_key(void) > { > asm volatile (" \ > @@ -819,7 +819,7 @@ __naked void map_lookup_elem_sockmap_key(void) > > SEC("sk_skb") > __description("bpf_map_lookup_elem(sockhash, &key)") > -__failure __msg("Unreleased reference id=2 alloc_insn=6") > +__failure __regex("Unreleased reference id=2 alloc_insn=[0-9]+") > __naked void map_lookup_elem_sockhash_key(void) > { > asm volatile (" \