18 test_for_pcmk_rc_name(
void **state) {
26 test_for_pcmk_rc_str(
void **state) {
33 test_for_crm_exit_name(
void **state) {
38 test_for_crm_exit_str(
void **state) {
40 assert_string_equal(
crm_exit_str(129),
"Interrupted by signal");
41 assert_string_equal(
crm_exit_str(-7777777),
"Unknown exit status");
45 test_for_pcmk_rc2exitc(
void **state) {
51 cmocka_unit_test(test_for_pcmk_rc_name),
52 cmocka_unit_test(test_for_pcmk_rc_str),
53 cmocka_unit_test(test_for_crm_exit_name),
54 cmocka_unit_test(test_for_crm_exit_str),
55 cmocka_unit_test(test_for_pcmk_rc2exitc))
crm_exit_t pcmk_rc2exitc(int rc)
Map a function return code to the most similar exit code.
const char * pcmk_rc_str(int rc)
Get a user-friendly description of a return code.
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
const char * crm_exit_str(crm_exit_t exit_code)
const char * pcmk_rc_name(int rc)
Get a return code constant name as a string.
const char * crm_exit_name(crm_exit_t exit_code)