]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
test: Return values from the asserts compatible with cmds
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 20 May 2015 19:27:34 +0000 (14:27 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:43:17 +0000 (22:43 +0200)
commit8f637bcc8598a120f54d797150efd6023dbc9505
treeb1f35bffa66d16fdbb7d32159371fd122c58e59f
parent9fc2f33e66b9d79ab5b863cd6a9b5931d8b5e606
test: Return values from the asserts compatible with cmds

The asserts are sometimes called from the context of the test command
itself so make sure that a return that happens as a result of a failure
is compatible with that command return. When called within a test, the
return value is ignored.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/test/ut.h