3 comments:
File tests/include/mocks/assert.h:
Patch Set #1, Line 64: * called.
> Can you provide an example? […]
Sorry, I just wrote these comments in the order I read your code. I mean an example of where dead_code() breaks compilation. I see now that your issue was with strdup() but I think providing the -stage attribute was the more appropriate solution to that, so this is no longer relevant.
Patch Set #2, Line 21: string-test-stage:= ramstage
Actually, I'd rather you leave this out so that the reference to others is that you don't need to provide it unless you care about the stage explicitly (because people will just copy&paste this).
Patch Set #2, Line 34: assert_int_equal(0, memcmp(str, duplicate, strlen(str)));
Cmocka seems to have an assert_string_equal().
To view, visit change 40538. To unsubscribe, or for help writing mail filters, visit settings.