[LTP] [PATCH 2/2] Add mseal01 test

Cyril Hrubis chrubis@suse.cz
Thu Jul 11 17:53:20 CEST 2024


Hi!
> +#ifndef TST_ABI32

This is the worst type of check you can do and should be used only when
the test code does not compile at all.

Instead you should check the return value from mseal() syscall and TCONF
if you get ENOSYS on 32bit, at least the syscalls numbers seems to be
allocated so you should get ENOSYS at runtime.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list