HomeClusterLabs Projects

Refactor: libcrmcommon: Don't reuse doc in pcmk__xc_create() unit test

Description

Refactor: libcrmcommon: Don't reuse doc in pcmk__xc_create() unit test

If we simply assume that pcmk__xml_new_doc() returns non-NULL (as it
currently must because it asserts on allocation error), then it's simple
to make assert_comment() more self-contained.

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

Details

Provenance
nrwahl2Authored on Mar 13 2025, 2:48 PM
Parents
rP6fb789945622: Refactor: libcib: Avoid cib_acl_enabled() duplication
Branches
Unknown
Tags
Unknown