Hey folks,
I'm using 'ExpectAndReturn' for testing if functions are called and with the right arguments. This works great if the functions are called.
However, I've noticed that it doesn't work testing against these functions if they are NOT called. So if I define two:
some_function_ExpectAndReturn(call-1);
some_function_ExpectAndReturn(call-2);
If "some_function()" is only called once, and the test ends, I would expect the test to fail and see the message "fewer times than expected", but I don't. I'm not using any Ignore calls.
I also tried to see if "enforce_strict_ordering" helps, but it doesn't. There must be something trivial I'm missing.
See below my .yaml file. I pulled Cmock from git so I assume it is latest and greatest.
Any suggestions or pointers what I'm missing?
Thx,
Ice.
:cmock:
:treat_externs: :include
:when_ptr: :compare_ptr
:enforce_strict_ordering: 1
:plugins:
- :ignore
- :ignore_arg
- :expect_any_args
- :return_thru_ptr
- :callback
:ignore: :args_only