| 5e551899 | 28-Nov-2023 |
angquan yu <[email protected]> |
selftests/breakpoints: Fix format specifier in ksft_print_msg in step_after_suspend_test.c
In the function 'tools/testing/selftests/breakpoints/run_test' within step_after_suspend_test.c, the ksft_p
selftests/breakpoints: Fix format specifier in ksft_print_msg in step_after_suspend_test.c
In the function 'tools/testing/selftests/breakpoints/run_test' within step_after_suspend_test.c, the ksft_print_msg function call incorrectly used '$s' as a format specifier. This commit corrects this typo to use the proper '%s' format specifier, ensuring the error message from waitpid() is correctly displayed.
The issue manifested as a compilation warning (too many arguments for format [-Wformat-extra-args]), potentially obscuring actual runtime errors and complicating debugging processes.
This fix enhances the clarity of error messages during test failures and ensures compliance with standard C format string conventions.
Signed-off-by: angquan yu <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| f000a39c | 23-Jun-2020 |
Paolo Bonzini <[email protected]> |
selftests: breakpoints: do not use ksft_exit_skip after ksft_set_plan
Calling ksft_exit_skip after ksft_set_plan results in executing fewer tests than planned. Use ksft_test_result_skip for the ind
selftests: breakpoints: do not use ksft_exit_skip after ksft_set_plan
Calling ksft_exit_skip after ksft_set_plan results in executing fewer tests than planned. Use ksft_test_result_skip for the individual tests. The call in suspend() is fine, but ksft_set_plan should be after it.
Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| 0732d06e | 29-Jun-2017 |
Shuah Khan <[email protected]> |
selftests: breakpoints: breakpoint_test_arm64: convert test to use TAP13
Convert breakpoint_test_arm64 output to TAP13 format. Use ksft_* var arg msg api to include strerror() info. in the output. C
selftests: breakpoints: breakpoint_test_arm64: convert test to use TAP13
Convert breakpoint_test_arm64 output to TAP13 format. Use ksft_* var arg msg api to include strerror() info. in the output. Change output from child process to use ksft_print_msg() instead of ksft_exit_* to avoid double counting tests and ensure parent process does the test counter incrementing.
Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| e4d1065b | 15-Jun-2017 |
Paul Elder <[email protected]> |
kselftest: make callers of ksft_exit_skip() output the reason for skipping
Make the three tests that did use the old ksft_ext_skip() (breakpoints/breakpoint_test_arm64, breakpoints/step_after_suspen
kselftest: make callers of ksft_exit_skip() output the reason for skipping
Make the three tests that did use the old ksft_ext_skip() (breakpoints/breakpoint_test_arm64, breakpoints/step_after_suspend_test, and membarrier_test) use the new one, with an output for the reason for skipping all the tests.
Signed-off-by: Paul Elder <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|