mcuboot/sim/mcuboot-sys/src
Fabio Utzig 9b0ee9034a Enable capturing asserts inside simulator
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>
2017-12-21 13:36:34 -07:00
..
api.rs sim: Naive move of binding into mcuboot-sys 2017-07-12 15:00:57 -06:00
area.rs sim: Move `areadesc` into `Images` struct 2017-11-07 09:39:45 -07:00
c.rs Enable capturing asserts inside simulator 2017-12-21 13:36:34 -07:00
lib.rs sim: Prevent reentrancy on simulation 2017-11-07 09:39:45 -07:00