HomeClusterLabs Projects

Test: includes: Add pcmk__assert_exits.

Description

Test: includes: Add pcmk__assert_exits.

This is very similar to pcmk__assert_asserts, except it checks that the
statement exits with the specified exit code. This can be used for
testing things that call crm_exit.

Note that while the implementation of this is pretty close to
pcmk__assert_asserts, it's different enough to where I think it's worth
keeping them as separate macros. Trying to do too much macro
refactoring makes it weird and hard to follow.

Details

Provenance
clumensAuthored on Jun 6 2023, 4:40 PM
Parents
rP1ce51e226961: Test: libcrmcommon: Add a test case for 3819b3507c.
Branches
Unknown
Tags
Unknown