Commit ce7d1017 authored by Wolfram Sang's avatar Wolfram Sang Committed by Shuah Khan

selftests: timers: clocksource-switch: adapt to kselftest framework

So we have proper counters at the end of a test. We also print the
kselftest header at the end of the test, so we don't mix with the output
of the child process. There is only this one test anyhow.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarJohn Stultz <jstultz@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 248ae6f4
......@@ -183,7 +183,9 @@ int main(int argc, char **argv)
out:
change_clocksource(orig_clk);
if (status)
return ksft_exit_fail();
return ksft_exit_pass();
/* Print at the end to not mix output with child process */
ksft_print_header();
ksft_set_plan(1);
ksft_test_result(!status, "clocksource-switch\n");
ksft_exit(!status);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment