selftests/mincore: fix skip condition for check_huge_pages test
authorRicardo Cañuelo <ricardo.canuelo@collabora.com>
Thu, 29 Jun 2023 08:35:46 +0000 (10:35 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 13 Jul 2023 18:51:13 +0000 (12:51 -0600)
commitb33b8731566d50aae6e11bd02921452cf3a7e0e7
tree95721a969a3e94e6f66c8e877eccb2c36bf093b0
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
selftests/mincore: fix skip condition for check_huge_pages test

The check_huge_pages test was failing instead of skipping on qemu-armv7
because the skip condition wasn't handled properly. Add an additional
check to fix it.

Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Closes: https://lore.kernel.org/all/CA+G9fYuoB8Ug8PcTU-YGmemL7_eeEksXFihvxWF6OikD7sK7pA@mail.gmail.com
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/mincore/mincore_selftest.c