malsyned / pfstest

Professional Firmware Services Unit Test Framework
Other
1 stars 0 forks source link

"Wrong type used for mock return value" when mock returns pointer and do_return() with non-pointer value #61

Open malsyned opened 4 years ago

malsyned commented 4 years ago

Example:

char *tynkread(void); ... do_return(the_string("Tynk"), when(mock_tynkread))

test.c:should_greet_user_at_console FAIL Location: test.c:42 Wrong type used for mock return value