[LTP] [PATCH] lib: tst_test: tst_reinit() abort when already initialized
Li Wang
li.wang@linux.dev
Thu May 7 10:41:05 CEST 2026
Cyril Hrubis wrote:
> I guess that we also need to revert:
>
> https://lists.linux.it/pipermail/ltp/2026-April/048007.html
>
> Since the IMA test is broken after this patch:
You're right, tst_reinit() shouldn't be called in an LTP test with
already initialized the IPC.
Or, we should convert ima_mmap.c into raw main() format proceduer.
> $./ima_mmap -f foo
> tst_test.c:2042: TINFO: LTP version: 20260130-210-gcd9899ce4
> tst_test.c:2045: TINFO: Tested kernel: 6.16.0 #1 SMP PREEMPT_DYNAMIC Tue Aug 12 10:49:53 CEST 2025 x86_64
> tst_kconfig.c:90: TINFO: Parsing kernel config '/lib/modules/6.16.0/build/.config'
> tst_test.c:1870: TINFO: Overall timeout per run is 0h 00m 30s
> tst_test.c:199: TBROK: Test library already initialized!
--
Regards,
Li Wang
More information about the ltp
mailing list