18 test_for_pcmk_rc_name(
void) {
26 test_for_pcmk_rc_str(
void) {
33 test_for_crm_exit_name(
void) {
38 test_for_crm_exit_str(
void) {
45 test_for_pcmk_rc2exitc(
void) {
51 test_for_bz2_strerror(
void) {
55 int main(
int argc,
char **argv) {
56 g_test_init(&argc, &argv, NULL);
57 g_test_add_func(
"/common/results/test_for_pcmk_rc_name", test_for_pcmk_rc_name);
58 g_test_add_func(
"/common/results/test_for_pcmk_rc_str", test_for_pcmk_rc_str);
59 g_test_add_func(
"/common/results/test_for_crm_exit_name", test_for_crm_exit_name);
60 g_test_add_func(
"/common/results/test_for_crm_exit_str", test_for_crm_exit_str);
61 g_test_add_func(
"/common/results/test_for_pcmk_rc2exitc", test_for_pcmk_rc2exitc);
62 g_test_add_func(
"/common/results/test_for_bz2_strerror", test_for_bz2_strerror);
const char * bz2_strerror(int rc)
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.
int main(int argc, char **argv)
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.
int pcmk__strcmp(const char *s1, const char *s2, uint32_t flags)
const char * crm_exit_name(crm_exit_t exit_code)