[LTP] [PATCH 1/2] lib: tst_test.c: Add TBROK counter.

Cyril Hrubis
2020-12-03T12:16:42Z

Hi!
> This ensures that TBROK is never lost.
>
> If test process forks a child and the child calls SAFE_MACRO() the
> failure will be lost unless the test process handles the exit value
> properly and propagates the TBROK.
>
> It is also strange that TBROK is the only return value that is solely
> propagated by the exit value and not by the counters. This has been
> mistake to begin with.

Anybody to review this?

I consider it important and at the same time quite safe to apply since
I've tried to keep the changes minimal.

--
Cyril Hrubis
chrubis@suse.cz