Run all tests
ceedling test:all
Run all tests in test_my_lib.c
ceedling test:test_my_lib
int my_var = 5;
TEST_ASSERT(my_var == 5);
Given the function:
uint32_t time_remaining( timer_t * timer )
{
...
}
We may not have access to the timer pointer to check it, so ignore it:
time_remaining_ExpectAndReturn(NULL, 10); //function returns 10
time_remaining_IgnoreArg_timer();
Add the following to the bottom of project.yml
:flags:
:test:
:compile:
:*:
- -fsanitize=address
:link:
:*:
- -fsanitize=address