HomeClusterLabs Projects

Test: libcrmcommon: Add unit tests for pcmk_daemon_user.

Description

Test: libcrmcommon: Add unit tests for pcmk_daemon_user.

Note that there are fewer tests here than for crm_user_lookup, which
does very similar things. pcmk_daemon_user calls that function, so I
don't see any need to add tests for what happens if calloc() fails. We
are already testing that for the lower level function.

Details

Provenance
clumensAuthored on Feb 3 2022, 1:25 PM
Parents
rP0e061484599a: Test: libcrmcommon: Update docs for how to use mocked functions.
Branches
Unknown
Tags
Unknown

Event Timeline