g_assert_cmpint 16 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_all_flags_set(0x000, 0x003), ==, false); g_assert_cmpint 17 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_all_flags_set(0x00f, 0x003), ==, true); g_assert_cmpint 18 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_all_flags_set(0x00f, 0x010), ==, false); g_assert_cmpint 19 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_all_flags_set(0x00f, 0x011), ==, false); g_assert_cmpint 20 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_all_flags_set(0x000, 0x000), ==, true); g_assert_cmpint 21 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_all_flags_set(0x00f, 0x000), ==, true); g_assert_cmpint 27 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_is_set(0x00f, 0x001), ==, true); g_assert_cmpint 28 lib/common/tests/flags/pcmk_all_flags_set_test.c g_assert_cmpint(pcmk_is_set(0x00f, 0x010), ==, false); g_assert_cmpint 16 lib/common/tests/flags/pcmk_any_flags_set_test.c g_assert_cmpint(pcmk_any_flags_set(0x000, 0x000), ==, false); g_assert_cmpint 17 lib/common/tests/flags/pcmk_any_flags_set_test.c g_assert_cmpint(pcmk_any_flags_set(0x000, 0x001), ==, false); g_assert_cmpint 18 lib/common/tests/flags/pcmk_any_flags_set_test.c g_assert_cmpint(pcmk_any_flags_set(0x00f, 0x001), ==, true); g_assert_cmpint 19 lib/common/tests/flags/pcmk_any_flags_set_test.c g_assert_cmpint(pcmk_any_flags_set(0x00f, 0x010), ==, false); g_assert_cmpint 20 lib/common/tests/flags/pcmk_any_flags_set_test.c g_assert_cmpint(pcmk_any_flags_set(0x00f, 0x011), ==, true); g_assert_cmpint 21 lib/common/tests/flags/pcmk_any_flags_set_test.c g_assert_cmpint(pcmk_any_flags_set(0x000, 0x000), ==, false); g_assert_cmpint 22 lib/common/tests/flags/pcmk_any_flags_set_test.c g_assert_cmpint(pcmk_any_flags_set(0x00f, 0x000), ==, false); g_assert_cmpint 13 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("Fencing_monitor_60000", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 16 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 60000); g_assert_cmpint 28 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("ClusterIP:0_start_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 31 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 35 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("imagestoreclone:1_post_notify_stop_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 38 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 50 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("httpd-bundle-0_monitor_30000", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 53 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 30000); g_assert_cmpint 57 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("httpd-bundle-ip-192.168.122.132_start_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 60 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 72 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("vm_migrate_from_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 75 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 79 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("vm_migrate_to_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 82 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 86 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("vm_idcc_devel_migrate_to_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 89 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 101 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("rsc_drbd_7788:1_post_notify_start_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 104 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 108 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("rabbitmq-bundle-clone_pre_notify_stop_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 111 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 115 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("post_notify_start_0", &rsc, &ty, &ms), ==, TRUE); g_assert_cmpint 118 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 129 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("Fencing_monitor_60000", NULL, &ty, &ms), ==, TRUE); g_assert_cmpint 131 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 60000); g_assert_cmpint 141 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("Fencing_monitor_60000", &rsc, NULL, &ms), ==, TRUE); g_assert_cmpint 143 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 60000); g_assert_cmpint 153 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("Fencing_monitor_60000", &rsc, &ty, NULL), ==, TRUE); g_assert_cmpint 167 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("", &rsc, &ty, &ms), ==, FALSE); g_assert_cmpint 168 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(rsc == NULL, ==, TRUE); g_assert_cmpint 169 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ty == NULL, ==, TRUE); g_assert_cmpint 170 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 172 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key(NULL, &rsc, &ty, &ms), ==, FALSE); g_assert_cmpint 173 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(rsc == NULL, ==, TRUE); g_assert_cmpint 174 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ty == NULL, ==, TRUE); g_assert_cmpint 175 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 185 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("httpd-bundle-0", &rsc, &ty, &ms), ==, FALSE); g_assert_cmpint 186 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(rsc == NULL, ==, TRUE); g_assert_cmpint 187 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ty == NULL, ==, TRUE); g_assert_cmpint 188 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 190 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("httpd-bundle-0_monitor", &rsc, &ty, &ms), ==, FALSE); g_assert_cmpint 191 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(rsc == NULL, ==, TRUE); g_assert_cmpint 192 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ty == NULL, ==, TRUE); g_assert_cmpint 193 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 0); g_assert_cmpint 195 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(parse_op_key("httpd-bundle-0_30000", &rsc, &ty, &ms), ==, FALSE); g_assert_cmpint 196 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(rsc == NULL, ==, TRUE); g_assert_cmpint 197 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ty == NULL, ==, TRUE); g_assert_cmpint 198 lib/common/tests/operations/parse_op_key_test.c g_assert_cmpint(ms, ==, 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 33 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello world"), ==, 0); g_assert_cmpint 44 lib/common/tests/strings/pcmk__add_word_test.c g_assert_cmpint(strcmp(list, "hello"), ==, 0); g_assert_cmpint 56 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 68 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 80 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 10 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('x', NULL), ==, false); g_assert_cmpint 11 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('\0', NULL), ==, false); g_assert_cmpint 17 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('\0', "xxx", "yyy", NULL), ==, true); g_assert_cmpint 18 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('\0', "", NULL), ==, true); g_assert_cmpint 24 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('x', "aaa", "bbb", "xxx", NULL), ==, true); g_assert_cmpint 30 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('x', "aaa", "bbb", NULL), ==, false); g_assert_cmpint 31 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('A', "aaa", "bbb", NULL), ==, false); g_assert_cmpint 32 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_assert_cmpint(pcmk__char_in_any_str('x', "", NULL), ==, false); g_assert_cmpint 10 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range(NULL, &start, &end), ==, g_assert_cmpint 12 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("", &start, &end), ==, g_assert_cmpint 21 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 22 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, 1234); g_assert_cmpint 23 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, 1234); g_assert_cmpint 31 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("-", &start, &end), ==, g_assert_cmpint 33 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 34 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 42 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("2000-", &start, &end), ==, g_assert_cmpint 44 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, 2000); g_assert_cmpint 45 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 53 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("-2020", &start, &end), ==, g_assert_cmpint 55 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 56 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, 2020); g_assert_cmpint 64 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("2000-2020", &start, &end), ==, g_assert_cmpint 66 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, 2000); g_assert_cmpint 67 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, 2020); g_assert_cmpint 75 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("2000x-", &start, &end), ==, g_assert_cmpint 77 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 78 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 80 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(pcmk__parse_ll_range("-x2000", &start, &end), ==, g_assert_cmpint 82 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(start, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 83 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_assert_cmpint(end, ==, PCMK__PARSE_INT_DEFAULT); g_assert_cmpint 24 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(NULL, &result, NULL, NULL), ==, EINVAL); g_assert_cmpint 27 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("", &result, NULL, NULL), ==, EINVAL); g_assert_cmpint 31 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(NULL, &result, "2.0", NULL), ==, g_assert_cmpint 35 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("", &result, "2.0", NULL), ==, EINVAL); g_assert_cmpint 45 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("asdf", &result, NULL, NULL), ==, EINVAL); g_assert_cmpint 48 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("as2.0", &result, NULL, NULL), ==, g_assert_cmpint 53 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("asdf", &result, "2.0", NULL), ==, g_assert_cmpint 57 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("as2.0", &result, "2.0", NULL), ==, g_assert_cmpint 67 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("2.0asdf", &result, NULL, NULL), ==, g_assert_cmpint 78 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("0.0", &result, NULL, NULL), ==, g_assert_cmpint 82 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("1.0", &result, NULL, NULL), ==, g_assert_cmpint 86 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double("-1.0", &result, NULL, NULL), ==, g_assert_cmpint 91 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 96 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 112 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, EOVERFLOW); g_assert_cmpint 116 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, EOVERFLOW); g_assert_cmpint 133 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 139 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, g_assert_cmpint 9 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__strcase_any_of("xxx", NULL), ==, false); g_assert_cmpint 10 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__str_any_of("xxx", NULL), ==, false); g_assert_cmpint 11 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__strcase_any_of("", NULL), ==, false); g_assert_cmpint 12 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__str_any_of("", NULL), ==, false); g_assert_cmpint 17 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__strcase_any_of("", "xxx", "yyy", NULL), ==, false); g_assert_cmpint 18 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__str_any_of("", "xxx", "yyy", NULL), ==, false); g_assert_cmpint 19 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__strcase_any_of(NULL, "xxx", "yyy", NULL), ==, false); g_assert_cmpint 20 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__str_any_of(NULL, "xxx", "yyy", NULL), ==, false); g_assert_cmpint 25 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__strcase_any_of("xxx", "aaa", "bbb", "xxx", NULL), ==, true); g_assert_cmpint 26 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__str_any_of("xxx", "aaa", "bbb", "xxx", NULL), ==, true); g_assert_cmpint 27 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__strcase_any_of("XXX", "aaa", "bbb", "xxx", NULL), ==, true); g_assert_cmpint 32 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__strcase_any_of("xxx", "aaa", "bbb", NULL), ==, false); g_assert_cmpint 33 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__str_any_of("xxx", "aaa", "bbb", NULL), ==, false); g_assert_cmpint 34 lib/common/tests/strings/pcmk__str_any_of_test.c g_assert_cmpint(pcmk__str_any_of("AAA", "aaa", "bbb", NULL), ==, false); g_assert_cmpint 12 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s1, pcmk__str_none), ==, 0); g_assert_cmpint 13 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, s1, pcmk__str_none), ==, true); g_assert_cmpint 14 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), !=, 0); g_assert_cmpint 15 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, s2, pcmk__str_none), ==, false); g_assert_cmpint 16 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, NULL, pcmk__str_none), ==, 0); g_assert_cmpint 23 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_null_matches), ==, 0); g_assert_cmpint 24 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, NULL, pcmk__str_null_matches), ==, true); g_assert_cmpint 25 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, s1, pcmk__str_null_matches), ==, 0); g_assert_cmpint 26 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_none), >, 0); g_assert_cmpint 27 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, NULL, pcmk__str_none), ==, false); g_assert_cmpint 28 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, s1, pcmk__str_none), <, 0); g_assert_cmpint 36 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), >, 0); g_assert_cmpint 37 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, s2, pcmk__str_none), ==, false); g_assert_cmpint 38 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, s1, pcmk__str_none), <, 0); g_assert_cmpint 46 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_casei), ==, 0); g_assert_cmpint 47 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, s2, pcmk__str_casei), ==, true); g_assert_cmpint 55 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, "a..d", pcmk__str_regex), ==, 1); g_assert_cmpint 56 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_regex), ==, 1); g_assert_cmpint 57 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, "a..d", pcmk__str_regex), ==, 0); g_assert_cmpint 58 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, "a..d", pcmk__str_regex), ==, true); g_assert_cmpint 59 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, "xxyy", pcmk__str_regex), !=, 0); g_assert_cmpint 60 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, "xxyy", pcmk__str_regex), ==, false); g_assert_cmpint 61 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 62 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s2, "a..d", pcmk__str_regex|pcmk__str_casei), ==, true); g_assert_cmpint 63 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "a..d", pcmk__str_regex), !=, 0); g_assert_cmpint 64 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s2, "a..d", pcmk__str_regex), ==, false); g_assert_cmpint 65 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "*ab", pcmk__str_regex), ==, 1); g_assert_cmpint 10 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("INFINITY"), ==, true); g_assert_cmpint 11 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("+INFINITY"), ==, true); g_assert_cmpint 17 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("infinity"), ==, false); g_assert_cmpint 18 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("+infinity"), ==, false); g_assert_cmpint 19 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("Infinity"), ==, false); g_assert_cmpint 20 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("+Infinity"), ==, false); g_assert_cmpint 26 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity(" INFINITY"), ==, false); g_assert_cmpint 27 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("INFINITY "), ==, false); g_assert_cmpint 28 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity(" INFINITY "), ==, false); g_assert_cmpint 29 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("+ INFINITY"), ==, false); g_assert_cmpint 35 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity(NULL), ==, false); g_assert_cmpint 36 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity(""), ==, false); g_assert_cmpint 42 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_assert_cmpint(pcmk_str_is_infinity("-INFINITY"), ==, false); g_assert_cmpint 10 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity("-INFINITY"), ==, true); g_assert_cmpint 16 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity("-infinity"), ==, false); g_assert_cmpint 17 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity("-Infinity"), ==, false); g_assert_cmpint 23 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity(" -INFINITY"), ==, false); g_assert_cmpint 24 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity("-INFINITY "), ==, false); g_assert_cmpint 25 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity(" -INFINITY "), ==, false); g_assert_cmpint 26 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity("- INFINITY"), ==, false); g_assert_cmpint 32 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity(NULL), ==, false); g_assert_cmpint 33 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity(""), ==, false); g_assert_cmpint 39 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_assert_cmpint(pcmk_str_is_minus_infinity("INFINITY"), ==, false); g_assert_cmpint 11 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c g_assert_cmpint(pe_cron_range_satisfied(tm, xml), ==, expected); g_assert_cmpint 19 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 26 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c g_assert_cmpint(pe_cron_range_satisfied(tm, NULL), ==, pcmk_rc_ok);