[LTP] [PATCH] lib: Check minimal supported kernel version
Cyril Hrubis
chrubis@suse.cz
Fri Sep 4 11:20:49 CEST 2026
Hi!
> LTP does not support kernels older than 4.4, but this requirement was
> only documented in static text without automated runtime validation.
>
> Define the minimal supported kernel version in tst_kvercmp.h so that
> the documentation fetches it dynamically and the core library aborts
> unsupported kernels with TCONF during test setup.
Great idea, but I wouldn't tst_brk() on older kernels, I would just
print a message that there may be failures becuase older kernels are not
supported or tested.
LTP has been historically used for many different purposes, e.g. for
testing BSD compatibility layout for running Linux binaries and I fear
that hard stop on older kernel versions would break these usecases.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list