HomeClusterLabs Projects

Test: libcrmcommon: Add unit tests for pcmk__output_and_clear_error.

Description

Test: libcrmcommon: Add unit tests for pcmk__output_and_clear_error.

Again, there really isn't much to test in this function. We can't test
that it exits early because there's no way to unit test a function that
returns nothing and does nothing. We can't test that it prints to
fprintf without mocking that function up, which is something I'm not yet
ready to tackle. So we're really just left with making sure it does
what it's supposed to.

Details

Provenance
clumensAuthored on Aug 11 2022, 2:18 PM
Parents
rPcf66488bec53: Test: libcrmcommon: Add unit tests for pcmk__output_free.
Branches
Unknown
Tags
Unknown