diff options
author | Joseph Ates <joseph.ates@msasafety.com> | 2016-02-10 12:16:13 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-02-10 13:18:11 +0100 |
commit | f8bba4b3a519147de59a2a7c3dc6262549e7e2bb (patch) | |
tree | 646f92fcc8b778916a6b380e06ab7bef2cb857da /ConfigureChecks.cmake | |
parent | c971d6e5c26549c421d7fc4cc2965cea4c628866 (diff) | |
download | cmocka-f8bba4b3a519147de59a2a7c3dc6262549e7e2bb.tar.gz cmocka-f8bba4b3a519147de59a2a7c3dc6262549e7e2bb.tar.bz2 cmocka-f8bba4b3a519147de59a2a7c3dc6262549e7e2bb.zip |
cmocka: Add will_return_maybe() for ignoring mock returns
As both parameter and function call order checking allow for ignoring
cases where they are never invoked, the mock return values are at
somewhat of a mismatch in that they must always be returned at least
once (even in the case of will_return_always()). Therefore, the ability
to set the count to -2 on will_return_count was added with a new macro
(will_return_maybe) that indicates that that the value field may never
be returned and still allow a successful test.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'ConfigureChecks.cmake')
0 files changed, 0 insertions, 0 deletions