HomeClusterLabs Projects

Build: libpe_status: Expose internal library functions for unit testing

Description

Build: libpe_status: Expose internal library functions for unit testing

If we are building libpe_status_test, undefine G_GNUC_INTERNAL so
functions using this macro are globally visible. Otherwise, the
functions will be hidden and nothing linking to libpe_status_test will
be able to see them. This makes unit testing them impossible.

Adapted from a0e2f4b

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Aug 24 2022, 2:53 PM
Parents
rP9b99e678a2d1: Build: libpe_rules, libpe_status: Add -DPCMK__UNIT_TESTING to test libs
Branches
Unknown
Tags
Unknown