HomeClusterLabs Projects

Test: libcrmcommon: Add a special pcmk__output_formatters function.

Description

Test: libcrmcommon: Add a special pcmk__output_formatters function.

This function only gets defined if we are building libcrmcommon_test.a.
The purpose is to expose the internal formatters variable via an
accessor function. Without that variable, there's not much that can
actually be unit tested in output.c.

Individual unit tests will also have to add this as a CFLAG in order to
have the function defined in the header file.

Details

Provenance
clumensAuthored on Aug 8 2022, 11:05 AM
Parents
rPbd3ba9268983: Refactor: libcrmcommon: Change a return value in pcmk__register_format.
Branches
Unknown
Tags
Unknown