[master] b02c78438 PRIV_TASK vtc: tolerate fini order
Dridi Boukelmoune
dridi at varni.sh
Wed Jan 13 07:40:29 UTC 2021
On Tue, Jan 12, 2021 at 6:42 PM Nils Goroll <nils.goroll at uplex.de> wrote:
>
> On 12/01/2021 18:41, Nils Goroll wrote:
> > On 12/01/2021 18:23, Dridi Boukelmoune wrote:
> >> Feature idea, logexpect undefined order:
> >>
> >> expect ? = Debug ^priv_task_free
> >> expect ? = Debug ^obj_priv_task_fini
> >>
> >> The "?" token would mean that consecutive expect statements using it
> >> could appear in a non-deterministic order.
> >>
> >> Thoughts?
> >
> > great idea! The end result would be the same as the regex with alternation, but
> > it would look _much_ cleaner.
>
> Actually, no, it would not be the same. Only the proposed solution could ensure
> that we see the required number of matches per line.
I don't understand that last email, but you ended up implementing the '?' marker
so I suppose it's fit for purpose :)
More information about the varnish-commit
mailing list