[LTP] [PATCH] lib: tst_test: tst_reinit() abort when already initialized
Li Wang
li.wang@linux.dev
Thu Apr 30 12:34:24 CEST 2026
On Thu, Apr 30, 2026 at 11:19:56AM +0200, Cyril Hrubis wrote:
> Calling tst_reinit() when library is already initialized or calling it
> for a second time is always mistake. With that we silenty drop the old
> IPC region, that may have contained test results and there are likely
> other problems possibly caused by initializing the test library twice.
>
> To fix that this patch adds tst_brk() that abort the test if we call
> tst_reinit() with already initialized test library.
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Li Wang <li.wang@linux.dev>
The patch itself looks good, I'm just wondering how you found
this issue, was it called twice somewhere/in a test?
--
Regards,
Li Wang
More information about the ltp
mailing list