Chris Schick commented on merge request !61 at cmocka / cmocka

Chris Schick
2023-01-24T15:31:56Z

Here is the error that this fixes:

45% tests passed, 6 tests failed out of 11

Total Test time (real) = 0.01 sec

The following tests FAILED:
6 - simple_test (Not Run)
7 - allocate_module_test (Not Run)
8 - assert_macro_test (Not Run)
9 - assert_module_test (Not Run)
10 - waiter_test_wrap (Not Run)
11 - test_uptime (Not Run)
Errors while running CTest

I see the problem is that examples are built by default and registered as tests so even if you don't turn on UNIT_TESTING you still get CMocka tests added to your CTest list that then fail.