Re: [PATCH] selftests: x86: skip the tests if prerequisites aren't fulfilled

From: Kirill A. Shutemov
Date: Mon Mar 11 2024 - 08:39:54 EST


On Thu, Mar 07, 2024 at 11:37:22PM +0500, Muhammad Usama Anjum wrote:
> diff --git a/tools/testing/selftests/x86/lam.c b/tools/testing/selftests/x86/lam.c
> index 215b8150b7cca..c0f016f45ee17 100644
> --- a/tools/testing/selftests/x86/lam.c
> +++ b/tools/testing/selftests/x86/lam.c
> @@ -1183,7 +1183,7 @@ int main(int argc, char **argv)
>
> if (!cpu_has_lam()) {
> ksft_print_msg("Unsupported LAM feature!\n");
> - return -1;
> + return KSFT_SKIP;
> }
>
> while ((c = getopt(argc, argv, "ht:")) != -1) {

Looks good to me:

Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>

--
Kiryl Shutsemau / Kirill A. Shutemov