From: René Scharfe Date: Sat, 25 Jul 2026 11:29:08 GMT Subject: Re: [PATCH v6 02/10] test-lib-functions: improve diagnostic output for trace2 data assertions Message-ID: <81b0d8a0-5c65-4b42-ad75-2b818f0bb66a@web.de> In-Reply-To: On 7/11/26 3:27 PM, Kristofer Karlsson via GitGitGadget wrote: > > diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh > index 809c662124..3521efe5d7 100644 > --- a/t/test-lib-functions.sh > +++ b/t/test-lib-functions.sh > @@ -1996,6 +1996,42 @@ test_trace2_data () { > grep -e '"category":"'"$1"'","key":"'"$2"'","value":"'"$3"'"' > } > > +# Check that the given trace2 data event has the expected value and > +# appears exactly once. Produces a diagnostic on failure. > +# > +# test_trace2_data_singular [