[LTP] [PATCH] lib: tst_has_slow_kconfig() cache the result

Petr Vorel pvorel@suse.cz
Mon Jan 20 14:02:17 CET 2025


Hi Cyril, Li,


> The result from the tst_has_slow_kconfig() is not going to change so we
> can cache the result as there are several cases where the function may
> end up being called. For instance any test that calls SAFE_CLONE() will
> call the function repeatedly. This change makes the tests slightly
> faster and also avoids repeated messages in the test output.

Thanks, elegant solution, thanks!

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr


More information about the ltp mailing list