[LTP] [PATCH] lib: tst_test: tst_reinit() abort when already initialized
Cyril Hrubis
chrubis@suse.cz
Thu Apr 30 14:53:12 CEST 2026
Hi!
> > 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?
https://lists.linux.it/pipermail/ltp/2026-April/048084.html
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list