1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 02:53:52 +01:00

3 Commits

Author SHA1 Message Date
Marian Buschsieweke
b0ec60c2d5
sys/embunit: fix return value on failure
When using `OUTPUT=COLORTEST` the return value of the unit test's
`main()` on failure was `0`, while it should be `1`. As a result,
running the unit tests from a script using

    $ OUTPUT=COLORTEXT make BOARD=native64 RIOT_TERMINAL=native -j32 flash term -C tests/unittests

would not catch a test failure.

This commit changes the behavior so that `0` is returned on success
and `1` on failure for both regular and colored text output.
2025-05-06 18:54:27 +02:00
Benjamin Valentin
127a2902b1 sys/embunit: return failure state in TextUIRunner_end() 2024-04-03 13:22:51 +02:00
René Kijewski
f684aa4b2d tests: make embUnit a normal sys module
There is nothing quite special about embUnit.

This PR makes it a normal sys module, so that you can use it in any
application / test.
2014-12-21 20:04:57 +01:00