g_assert_cmpint 14 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c g_assert_cmpint(g_strv_length((gchar **) (a)), ==, g_strv_length((gchar **) (b))); \ g_assert_cmpint 25 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 60000); g_assert_cmpint 40 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 47 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 62 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 30000); g_assert_cmpint 69 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 84 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 91 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 98 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 113 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 120 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 127 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 140 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 60000); g_assert_cmpint 152 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 60000); g_assert_cmpint 179 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 184 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 197 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 202 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 207 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 19 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(pcmk_rc_name(pcmk_rc_error-1), "pcmk_rc_unknown_format", pcmk__str_none), ==, 0); g_assert_cmpint 20 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(pcmk_rc_name(pcmk_rc_ok), "pcmk_rc_ok", pcmk__str_none), ==, 0); g_assert_cmpint 21 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(pcmk_rc_name(pcmk_rc_ok), "pcmk_rc_ok", pcmk__str_none), ==, 0); g_assert_cmpint 22 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(pcmk_rc_name(-7777777), "Unknown", pcmk__str_none), ==, 0); g_assert_cmpint 27 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(pcmk_rc_str(pcmk_rc_error-1), "Unknown output format", pcmk__str_none), ==, 0); g_assert_cmpint 28 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(pcmk_rc_str(pcmk_rc_ok), "OK", pcmk__str_none), ==, 0); g_assert_cmpint 29 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(pcmk_rc_str(-1), "Unknown error", pcmk__str_none), ==, 0); g_assert_cmpint 34 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(crm_exit_name(CRM_EX_OK), "CRM_EX_OK", pcmk__str_none), ==, 0); g_assert_cmpint 39 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(crm_exit_str(CRM_EX_OK), "OK", pcmk__str_none), ==, 0); g_assert_cmpint 40 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(crm_exit_str(129), "Interrupted by signal", pcmk__str_none), ==, 0); g_assert_cmpint 41 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(crm_exit_str(-7777777), "Unknown exit status", pcmk__str_none), ==, 0); g_assert_cmpint 46 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk_rc2exitc(pcmk_rc_ok), ==, CRM_EX_OK); g_assert_cmpint 47 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk_rc2exitc(-7777777), ==, CRM_EX_ERROR); g_assert_cmpint 52 lib/common/tests/results/pcmk__results_test.c g_assert_cmpint(pcmk__strcmp(bz2_strerror(BZ_STREAM_END), "Ok", pcmk__str_none), ==, 0); g_assert_cmpint 23 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello world"), ==, 0); g_assert_cmpint 34 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello world"), ==, 0); g_assert_cmpint 46 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello"), ==, 0); g_assert_cmpint 59 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello world I am a unit test"), ==, 0); g_assert_cmpint 72 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello,world,I am a unit test"), ==, 0); g_assert_cmpint 85 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello, world, I am a unit test"), ==, 0); g_assert_cmpint 19 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range(NULL, &start, &end), ==, g_assert_cmpint 21 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("", &start, &end), ==, g_assert_cmpint 30 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("1234", &start, &end), ==, pcmk_rc_ok); g_assert_cmpint 31 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, 1234); g_assert_cmpint 32 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, 1234); g_assert_cmpint 40 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("-", &start, &end), ==, g_assert_cmpint 42 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 43 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 51 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("2000-", &start, &end), ==, g_assert_cmpint 53 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, 2000); g_assert_cmpint 54 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 62 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("-2020", &start, &end), ==, g_assert_cmpint 64 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 65 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, 2020); g_assert_cmpint 73 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("2000-2020", &start, &end), ==, g_assert_cmpint 75 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, 2000); g_assert_cmpint 76 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, 2020); g_assert_cmpint 84 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("2000x-", &start, &end), ==, g_assert_cmpint 86 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 87 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 89 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("-x2000", &start, &end), ==, g_assert_cmpint 91 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 92 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 32 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(NULL, &result, NULL, NULL), ==, EINVAL); g_assert_cmpint 35 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("", &result, NULL, NULL), ==, EINVAL); g_assert_cmpint 39 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(NULL, &result, "2.0", NULL), ==, g_assert_cmpint 43 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("", &result, "2.0", NULL), ==, EINVAL); g_assert_cmpint 53 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("asdf", &result, NULL, NULL), ==, EINVAL); g_assert_cmpint 56 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("as2.0", &result, NULL, NULL), ==, g_assert_cmpint 61 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("asdf", &result, "2.0", NULL), ==, g_assert_cmpint 65 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("as2.0", &result, "2.0", NULL), ==, g_assert_cmpint 75 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("2.0asdf", &result, NULL, NULL), ==, g_assert_cmpint 86 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("0.0", &result, NULL, NULL), ==, g_assert_cmpint 90 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("1.0", &result, NULL, NULL), ==, g_assert_cmpint 94 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("-1.0", &result, NULL, NULL), ==, g_assert_cmpint 99 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 104 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 120 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, EOVERFLOW); g_assert_cmpint 124 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, EOVERFLOW); g_assert_cmpint 141 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 147 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 21 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s1, pcmk__str_none), ==, 0); g_assert_cmpint 23 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), !=, 0); g_assert_cmpint 25 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, NULL, pcmk__str_none), ==, 0); g_assert_cmpint 32 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_null_matches), ==, 0); g_assert_cmpint 34 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, s1, pcmk__str_null_matches), ==, 0); g_assert_cmpint 35 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_none), >, 0); g_assert_cmpint 37 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, s1, pcmk__str_none), <, 0); g_assert_cmpint 45 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), >, 0); g_assert_cmpint 47 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, s1, pcmk__str_none), <, 0); g_assert_cmpint 55 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_casei), ==, 0); g_assert_cmpint 64 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, "a..d", pcmk__str_regex), ==, 1); g_assert_cmpint 65 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_regex), ==, 1); g_assert_cmpint 66 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, "a..d", pcmk__str_regex), ==, 0); g_assert_cmpint 68 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, "xxyy", pcmk__str_regex), !=, 0); g_assert_cmpint 70 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "a..d", pcmk__str_regex|pcmk__str_casei), ==, 0); g_assert_cmpint 72 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "a..d", pcmk__str_regex), !=, 0); g_assert_cmpint 74 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "*ab", pcmk__str_regex), ==, 1); g_assert_cmpint 33 lib/common/tests/xpath/pcmk__xpath_node_id_test.c g_assert_cmpint(strcmp(s, "xyz"), ==, 0); g_assert_cmpint 37 lib/common/tests/xpath/pcmk__xpath_node_id_test.c g_assert_cmpint(strcmp(s, "xyz"), ==, 0); g_assert_cmpint 20 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c g_assert_cmpint(pe_cron_range_satisfied(tm, xml), ==, expected); g_assert_cmpint 28 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c g_assert_cmpint(pe_cron_range_satisfied(NULL, NULL), ==, pcmk_rc_op_unsatisfied); g_assert_cmpint 35 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c g_assert_cmpint(pe_cron_range_satisfied(tm, NULL), ==, pcmk_rc_ok);