Re: [PATCH v9 2/3] unit tests: add TAP unit test framework
- From
Josh Steadmon <steadmon@google.com>
- Date
- Nov 9, 2023, 17:51 UTC
- Message-ID
- <ZU0cFK1lrBdXpHug@google.com>
- In-Reply-To
- <CAP8UFD3SVnu+HFQhFpsF4PA6pK5B5L+aP-jxRX=Ro3EYekS0kg@mail.gmail.com>
On 2023.11.03 22:54, Christian Couder wrote:
Show 18 quoted lines
> On Thu, Nov 2, 2023 at 12:31 AM Josh Steadmon <steadmon@google.com> wrote:
> >
> > From: Phillip Wood <phillip.wood@dunelm.org.uk>
>
> > +int test_assert(const char *location, const char *check, int ok)
> > +{
> > + assert(ctx.running);
> > +
> > + if (ctx.result == RESULT_SKIP) {
> > + test_msg("skipping check '%s' at %s", check, location);
> > + return 1;
> > + } else if (!ctx.todo) {
>
> I suggested removing the "else" and moving the "if (!ctx.todo) {" to
> its own line in the previous round and thought you agreed with that,
> but maybe it fell through the cracks somehow.
>
> Anyway I think this is a minor nit, and the series looks good to me.Ahh, sorry about that, I must have accidentally dropped a fixup patch at some point. I'll correct that and send v10 soon.