Direkt zur Hauptnavigation springen Direkt zum Inhalt springen Jump to sub navigation

emlix contributed to cmocka

  • Community, OS Contributions

The emlix team recently made contributions to the cmocka unit testing framework.

Recently, emlix was able to contribute to the cmocka unit testing
framework (https://gitlab.com/cmocka) by returning an extension
developed in the elos (https://github.com/Elektrobit/elos) project in
cooperation with Elektrobit Automotive GmbH as a proposal for a new type of
assert functions. With these functions it is possible to annotate
assert messages in the test protocol with an additional descriptive
message. So you can create test messages that can explain themselves:

```

[ RUN      ] test_ptr_equal_msg

[ ERROR ] --- 0x5bab9369f009 != 0x5bab9369f008

[               ] --- my_pointer should be equal to itself

[    LINE   ] ---
  /home/wgehrha/projects/cmocka/tests/test_assert_ptr_msg.c:14: error:
Failure!

[  FAILED ] test_ptr_equal_msg

```