Skip to content

Commit b0be86b

Browse files
committed
doc: describe return values of C tests
* Enumerate return values of C tests * Reference assertion macros Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
1 parent 3fea6df commit b0be86b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/develop/tests_writing.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@ Note that the MEM_TEST() macros is defined at the top of the file.
228228

229229
Example commit: 9fe064646d2 ("bloblist: Support relocating to a larger space") [1]
230230

231+
* A successful test returns 0.
232+
* A skipped test returns -EAGAIN.
233+
* Any other value signals a failure.
234+
235+
Include ``test/ut.h`` defines a number of macros to check values and to return
236+
from the test function if the assertion fails. See :doc:`../api/test`
237+
for details.
238+
231239
[1] https://gitlab.denx.de/u-boot/u-boot/-/commit/9fe064646d2
232240

233241

0 commit comments

Comments
 (0)