HomeClusterLabs Projects

Test: libcrmcommon: Use g_assert_*() instead of g_assert()

Description

Test: libcrmcommon: Use g_assert_*() instead of g_assert()

"...Similarly, it [g_assert()] must not be used in unit tests, otherwise
the unit tests will be ineffective if compiled with G_DISABLE_ASSERT.
Use g_assert_true() and related macros in unit tests instead."

https://developer.gnome.org/glib/unstable/glib-Testing.html#g-assert

Also remove redundant test for pcmk__str_any_of().

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

Details

Provenance
nrwahl2Authored on Aug 8 2020, 6:04 PM
Parents
rP41df12e2dd1c: Test: libcrmcommon: Create unit tests for pcmk__char_in_any_str()
Branches
Unknown
Tags
Unknown

Event Timeline