selftests/x86: sigframe_fpu_portability: fix TAP plan mismatches
PATCH 1/1 selftests/x86: sigframe_fpu_portability: fix TAP plan mismatches
The plan set to 2 with ksft_set_plan(), but check_avx_support() may call ksft_exit_skip() which leads to a TAP plan mismatch. Move the ksft_set_plan() call after the check is done.
Signed-off-by Jakov Novak <[email protected]>
--- tools/testing/selftests/x86/sigframe_fpu_portability.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/testing/selftests/x86/sigframe_fpu_portability.c +2 -1
@@ -221,12 +221,13 @@ static void test_invalid_shrunk_xstate_size(void)int main (void ) {ksft_print_header (); -ksft_set_plan (2 ); self_pid =getpid ();check_avx_support (); +ksft_set_plan (2 ); +test_valid_shrunk_xstate_size ();test_invalid_shrunk_xstate_size ();
Signature · 1 line
2.56.1
Quoted 3 lines · Jakov Novak
The plan set to 2 with
ksft_set_plan(), butcheck_avx_support()may callksft_exit_skip()which leads to a TAP plan mismatch. Move theksft_set_plan()call after the check is done.
I'd really like to know more about what this is fixing. It's not super clear from this changelog.