selftests/harness: Actually report SKIP for signal tests
authorKees Cook <keescook@chromium.org>
Mon, 7 Aug 2023 17:43:58 +0000 (10:43 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 11 Aug 2023 06:10:09 +0000 (23:10 -0700)
commitb3d46e11fec0c5a8972e5061bb1462119ae5736d
tree3708b6436c7cd372ca3b44b5903549f059a69be9
parentfcce1c6cb156d79debaf84f63233f146540031b1
selftests/harness: Actually report SKIP for signal tests

Tests that were expecting a signal were not correctly checking for a
SKIP condition. Move the check before the signal checking when
processing test result.

Cc: Shuah Khan <shuah@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Will Drewry <wad@chromium.org>
Cc: linux-kselftest@vger.kernel.org
Fixes: 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP")
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/kselftest_harness.h