HomeClusterLabs Projects

Test: libcrmcommon: Add unit tests for pcmk__call_message.

Description

Test: libcrmcommon: Add unit tests for pcmk__call_message.

This uses cmocka's functions for checking if functions get called.
Here, we can also use them to check that functions did not get called.
Each fake output function calls function_called(), which requires a
matching expect_function_called(). If there isn't a match, that's an
error.

Details

Provenance
clumensAuthored on Aug 11 2022, 10:55 AM
Parents
rPb34827a8db4c: Low: libcrmcommon: Don't allow NULL params in pcmk__call_message.
Branches
Unknown
Tags
Unknown