Commit 5480d26d authored by Petr Menšík's avatar Petr Menšík Committed by Evan Hunt
Browse files

Workaround to kyua bug

Kyua 0.13 is not able to correctly handle whole test skipping.
Make workaround to it, include skipping message.
parent dacfa097
Pipeline #12047 passed with stages
in 11 minutes and 7 seconds
......@@ -573,14 +573,13 @@ purge(void **state) {
main(int argc, char **argv) {
const struct CMUnitTest tests[] = {
const struct CMUnitTest tests[] = {
cmocka_unit_test_setup_teardown(ticker, _setup, _teardown),
cmocka_unit_test_setup_teardown(once_life, _setup, _teardown),
cmocka_unit_test_setup_teardown(once_idle, _setup, _teardown),
cmocka_unit_test_setup_teardown(reset, _setup, _teardown),
cmocka_unit_test_setup_teardown(purge, _setup, _teardown),
int c;
......@@ -595,6 +594,14 @@ main(int argc, char **argv) {
return (cmocka_run_group_tests(tests, NULL, NULL));
printf("1..0 # Skipped: timer test requires threads\n");
return (0);
#else /* HAVE_CMOCKA */
Supports Markdown
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