9b0ee9034a
When building in simulator mode, mock assert() to call an simulator function which will enable other code to check if some path failed. The assert checking interface, was added to boot_go which now returns the low-level invocation results as well as the number of asserts triggered. Some new added tests check for assert() and expect it to happen. To not abort tests, assert() was changed under sim env to not call c assert() and instead just do some internal calculation which could be checked by the simulator after a bootloader run and assert() catching behavior was made optional (each test choses the behavior it needs). Signed-off-by: Fabio Utzig <utzig@apache.org> |
||
---|---|---|
.. | ||
api.rs | ||
area.rs | ||
c.rs | ||
lib.rs |