diff options
author | Joel Kitching <kitching@google.com> | 2019-09-11 14:15:45 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-23 05:18:07 +0000 |
commit | aaf394335cc4e287a1ffb6332311559b2b29c41f (patch) | |
tree | 3d552e3e22f530ba564654b6979a4009fbd53d68 /firmware/2lib/include/2return_codes.h | |
parent | d3efd73cbb1fb5cf133739622fe0bd49653fad2e (diff) | |
download | vboot-aaf394335cc4e287a1ffb6332311559b2b29c41f.tar.gz |
vboot: add VB2_ASSERT and VB2_DIE macros
Sometimes vboot needs to make assertions to work sanely without
always having to return VB2_ERROR_* values. Add VB2_ASSERT and
VB2_DIE macros to deal with these cases.
Convert existing VbAssert macro to use either VB2_ASSERT or
TEST_* macros depending on the case.
Implement testing infrastructure to check that aborts are being
triggered correctly. The TEST_ASSERT macro should be used.
BUG=b:124141368, chromium:1005700
TEST=make clean && make runtests
BRANCH=none
Change-Id: I298384ba50842a94a311df7f868f807bf2109cff
Signed-off-by: Joel Kitching <kitching@google.com>
Cq-Depend: chromium:1813277
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1800112
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
0 files changed, 0 insertions, 0 deletions