assert_int_equal 32 lib/cluster/tests/cluster/pcmk_cluster_set_destroy_fn_test.c assert_int_equal(pcmk_cluster_set_destroy_fn(NULL, NULL), EINVAL); assert_int_equal 33 lib/cluster/tests/cluster/pcmk_cluster_set_destroy_fn_test.c assert_int_equal(pcmk_cluster_set_destroy_fn(NULL, destroy_fn1), EINVAL); assert_int_equal 43 lib/cluster/tests/cluster/pcmk_cluster_set_destroy_fn_test.c assert_int_equal(pcmk_cluster_set_destroy_fn(&cluster, NULL), pcmk_rc_ok); assert_int_equal 47 lib/cluster/tests/cluster/pcmk_cluster_set_destroy_fn_test.c assert_int_equal(pcmk_cluster_set_destroy_fn(&cluster, NULL), pcmk_rc_ok); assert_int_equal 58 lib/cluster/tests/cluster/pcmk_cluster_set_destroy_fn_test.c assert_int_equal(pcmk_cluster_set_destroy_fn(&cluster, destroy_fn1), assert_int_equal 70 lib/cluster/tests/cluster/pcmk_cluster_set_destroy_fn_test.c assert_int_equal(pcmk_cluster_set_destroy_fn(&cluster, destroy_fn1), assert_int_equal 42 lib/cluster/tests/cpg/pcmk_cpg_set_confchg_fn_test.c assert_int_equal(pcmk_cpg_set_confchg_fn(NULL, NULL), EINVAL); assert_int_equal 43 lib/cluster/tests/cpg/pcmk_cpg_set_confchg_fn_test.c assert_int_equal(pcmk_cpg_set_confchg_fn(NULL, confchg_fn1), EINVAL); assert_int_equal 55 lib/cluster/tests/cpg/pcmk_cpg_set_confchg_fn_test.c assert_int_equal(pcmk_cpg_set_confchg_fn(&cluster, NULL), pcmk_rc_ok); assert_int_equal 59 lib/cluster/tests/cpg/pcmk_cpg_set_confchg_fn_test.c assert_int_equal(pcmk_cpg_set_confchg_fn(&cluster, NULL), pcmk_rc_ok); assert_int_equal 72 lib/cluster/tests/cpg/pcmk_cpg_set_confchg_fn_test.c assert_int_equal(pcmk_cpg_set_confchg_fn(&cluster, confchg_fn1), assert_int_equal 86 lib/cluster/tests/cpg/pcmk_cpg_set_confchg_fn_test.c assert_int_equal(pcmk_cpg_set_confchg_fn(&cluster, confchg_fn1), assert_int_equal 38 lib/cluster/tests/cpg/pcmk_cpg_set_deliver_fn_test.c assert_int_equal(pcmk_cpg_set_deliver_fn(NULL, NULL), EINVAL); assert_int_equal 39 lib/cluster/tests/cpg/pcmk_cpg_set_deliver_fn_test.c assert_int_equal(pcmk_cpg_set_deliver_fn(NULL, deliver_fn1), EINVAL); assert_int_equal 51 lib/cluster/tests/cpg/pcmk_cpg_set_deliver_fn_test.c assert_int_equal(pcmk_cpg_set_deliver_fn(&cluster, NULL), pcmk_rc_ok); assert_int_equal 55 lib/cluster/tests/cpg/pcmk_cpg_set_deliver_fn_test.c assert_int_equal(pcmk_cpg_set_deliver_fn(&cluster, NULL), pcmk_rc_ok); assert_int_equal 68 lib/cluster/tests/cpg/pcmk_cpg_set_deliver_fn_test.c assert_int_equal(pcmk_cpg_set_deliver_fn(&cluster, deliver_fn1), assert_int_equal 82 lib/cluster/tests/cpg/pcmk_cpg_set_deliver_fn_test.c assert_int_equal(pcmk_cpg_set_deliver_fn(&cluster, deliver_fn1), assert_int_equal 26 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 34 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 100000); assert_int_equal 42 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 57 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 1000); assert_int_equal 64 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 71 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 86 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 93 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 108 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 30000); assert_int_equal 115 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 130 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 137 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 144 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 159 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 166 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 173 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 181 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 194 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 206 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 233 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 238 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 251 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 256 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 261 lib/common/tests/actions/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 17 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec(NULL, NULL, NULL, NULL), -EINVAL); assert_int_equal 18 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("", NULL, NULL, NULL), -EINVAL); assert_int_equal 19 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec(":", NULL, NULL, NULL), -EINVAL); assert_int_equal 20 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("::", NULL, NULL, NULL), -EINVAL); assert_int_equal 29 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf", &std, &prov, &ty), -EINVAL); assert_int_equal 30 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf:", &std, &prov, &ty), -EINVAL); assert_int_equal 31 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf::", &std, &prov, &ty), -EINVAL); assert_int_equal 40 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf:pacemaker:", &std, &prov, &ty), -EINVAL); assert_int_equal 49 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("stonith:fence_xvm", &std, &prov, &ty), pcmk_ok); assert_int_equal 64 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf:pacemaker:ping", &std, &prov, &ty), pcmk_ok); assert_int_equal 80 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("systemd:UNIT@A:B", &std, &prov, &ty), pcmk_ok); assert_int_equal 20 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(PCMK_OCF_OK, pcmk__effective_rc(PCMK_OCF_OK)); assert_int_equal 21 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(PCMK_OCF_OK, pcmk__effective_rc(PCMK_OCF_DEGRADED)); assert_int_equal 22 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(PCMK_OCF_RUNNING_PROMOTED, pcmk__effective_rc(PCMK_OCF_DEGRADED_PROMOTED)); assert_int_equal 23 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(PCMK_OCF_UNKNOWN, pcmk__effective_rc(PCMK_OCF_UNKNOWN)); assert_int_equal 29 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(-1, pcmk__effective_rc(-1)); assert_int_equal 30 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(255, pcmk__effective_rc(255)); assert_int_equal 31 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(INT_MAX, pcmk__effective_rc(INT_MAX)); assert_int_equal 32 lib/common/tests/agents/pcmk__effective_rc_test.c assert_int_equal(INT_MIN, pcmk__effective_rc(INT_MIN)); assert_int_equal 22 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("ocf"), expected); assert_int_equal 23 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("OCF"), expected); assert_int_equal 31 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("stonith"), expected); assert_int_equal 32 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("StOnItH"), expected); assert_int_equal 37 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("systemd"), pcmk_ra_cap_status); assert_int_equal 38 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("SYSTEMD"), pcmk_ra_cap_status); assert_int_equal 39 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("service"), pcmk_ra_cap_status); assert_int_equal 40 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("SeRvIcE"), pcmk_ra_cap_status); assert_int_equal 41 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("upstart"), pcmk_ra_cap_status); assert_int_equal 42 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("uPsTaRt"), pcmk_ra_cap_status); assert_int_equal 50 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("lsb"), expected); assert_int_equal 51 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("LSB"), expected); assert_int_equal 56 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("nagios"), pcmk_ra_cap_params); assert_int_equal 57 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("NAGios"), pcmk_ra_cap_params); assert_int_equal 62 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("blahblah"), pcmk_ra_cap_none); assert_int_equal 63 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps(""), pcmk_ra_cap_none); assert_int_equal 64 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps(NULL), pcmk_ra_cap_none); assert_int_equal 19 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c assert_int_equal(g_strv_length((gchar **) (a)), g_strv_length((gchar **) (b))); \ assert_int_equal 54 lib/common/tests/cmdline/pcmk__new_common_args_test.c assert_int_equal(args->verbosity, 0); assert_int_equal 16 lib/common/tests/flags/pcmk__clear_flags_as_test.c assert_int_equal(pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 18 lib/common/tests/flags/pcmk__clear_flags_as_test.c assert_int_equal(pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 24 lib/common/tests/flags/pcmk__clear_flags_as_test.c assert_int_equal(pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 26 lib/common/tests/flags/pcmk__clear_flags_as_test.c assert_int_equal(pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 32 lib/common/tests/flags/pcmk__clear_flags_as_test.c assert_int_equal(pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 34 lib/common/tests/flags/pcmk__clear_flags_as_test.c assert_int_equal(pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 16 lib/common/tests/flags/pcmk__set_flags_as_test.c assert_int_equal(pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 18 lib/common/tests/flags/pcmk__set_flags_as_test.c assert_int_equal(pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 20 lib/common/tests/flags/pcmk__set_flags_as_test.c assert_int_equal(pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, "Test", assert_int_equal 16 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy(NULL), assert_int_equal 19 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy(PCMK_VALUE_NONE), assert_int_equal 22 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("NONE"), assert_int_equal 25 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("None"), assert_int_equal 28 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("nOnE"), assert_int_equal 31 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("migrate-on-red"), assert_int_equal 34 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("only-green"), assert_int_equal 37 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("progressive"), assert_int_equal 40 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("custom"), assert_int_equal 46 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("foo"), assert_int_equal 48 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("custom1"), assert_int_equal 50 lib/common/tests/health/pcmk__parse_health_strategy_test.c assert_int_equal(pcmk__parse_health_strategy("not-only-green-here"), assert_int_equal 43 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/dir/file"), 0); assert_int_equal 47 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/full/path"), 0); assert_int_equal 51 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/dir/../relative/path"), 0); assert_int_equal 30 lib/common/tests/iso8601/crm_time_add_days_test.c assert_int_equal(crm_time_compare(orig, expected), 0); assert_int_equal 30 lib/common/tests/iso8601/crm_time_add_seconds_test.c assert_int_equal(crm_time_compare(orig, expected), 0); assert_int_equal 30 lib/common/tests/iso8601/crm_time_add_years_test.c assert_int_equal(crm_time_compare(orig, expected), 0); assert_int_equal 36 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(NULL, pcmk__time_years, xml), assert_int_equal 47 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_years, NULL), assert_int_equal 49 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 60 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(NULL, pcmk__time_unknown, xml), assert_int_equal 72 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_months, xml), assert_int_equal 74 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 88 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_years, xml), assert_int_equal 90 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 105 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_years, xml), ERANGE); assert_int_equal 106 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 110 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_years, xml), ERANGE); assert_int_equal 111 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 125 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_years, xml), assert_int_equal 127 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 141 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_months, xml), assert_int_equal 143 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 157 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_weeks, xml), assert_int_equal 159 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 173 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_days, xml), assert_int_equal 175 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 189 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_hours, xml), assert_int_equal 191 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 205 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_minutes, xml), assert_int_equal 207 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 221 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(pcmk__add_time_from_xml(t, pcmk__time_seconds, xml), assert_int_equal 223 lib/common/tests/iso8601/pcmk__add_time_from_xml_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 29 lib/common/tests/iso8601/pcmk__set_time_if_earlier_test.c assert_int_equal(crm_time_compare(target, target_copy), 0); assert_int_equal 42 lib/common/tests/iso8601/pcmk__set_time_if_earlier_test.c assert_int_equal(crm_time_compare(target, source), 0); assert_int_equal 55 lib/common/tests/iso8601/pcmk__set_time_if_earlier_test.c assert_int_equal(crm_time_compare(target, source), 0); assert_int_equal 69 lib/common/tests/iso8601/pcmk__set_time_if_earlier_test.c assert_int_equal(crm_time_compare(target, target_copy), 0); assert_int_equal 33 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 3); assert_int_equal 58 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 2); assert_int_equal 82 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 2); assert_int_equal 106 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 2); assert_int_equal 132 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 0); assert_int_equal 43 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_int_equal(pcmk_rc_ok, assert_int_equal 45 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_int_equal(i, 47); assert_int_equal 61 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_int_equal(pcmk_rc_ok, assert_int_equal 63 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_int_equal(i, 3); assert_int_equal 64 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c assert_int_equal(counter, 1); assert_int_equal 79 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c assert_int_equal(counter, 1); assert_int_equal 96 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c assert_int_equal(counter, 2); assert_int_equal 117 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c assert_int_equal(counter, 4); assert_int_equal 139 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c assert_int_equal(counter, 3); assert_int_equal 21 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(NULL, NULL, &value), ENODATA); assert_int_equal 22 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(NULL, "whatever", &value), ENODATA); assert_int_equal 23 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, NULL, &value), EINVAL); assert_int_equal 24 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "whatever", NULL), EINVAL); assert_int_equal 35 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "c", &value), ENODATA); assert_int_equal 47 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "a", &value), pcmk_rc_ok); assert_int_equal 50 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "b", &value), pcmk_rc_ok); assert_int_equal 52 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "c", &value), pcmk_rc_bad_input); assert_int_equal 37 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(NULL, NULL, NULL), EINVAL); assert_int_equal 38 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(xml, NULL, NULL), EINVAL); assert_int_equal 39 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(xml, ATTR_PRESENT, NULL), EINVAL); assert_int_equal 40 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(xml, NULL, &t), EINVAL); assert_int_equal 42 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(NULL, ATTR_PRESENT, NULL), EINVAL); assert_int_equal 43 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(NULL, ATTR_PRESENT, &t), EINVAL); assert_int_equal 45 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(NULL, NULL, &t), EINVAL); assert_int_equal 57 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(xml, ATTR_PRESENT, &t), EINVAL); assert_int_equal 69 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(xml, ATTR_MISSING, &t), pcmk_rc_ok); assert_int_equal 82 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(xml, ATTR_PRESENT, &t), pcmk_rc_ok); assert_int_equal 83 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(crm_time_compare(t, reference), 0); assert_int_equal 96 lib/common/tests/nvpair/pcmk__xe_get_datetime_test.c assert_int_equal(pcmk__xe_get_datetime(xml, ATTR_PRESENT, &t), assert_int_equal 34 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(pcmk__xe_get_flags(xml, "attribute", NULL, DEFAULT_VALUE), assert_int_equal 39 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, expected_rc); assert_int_equal 54 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(pcmk__xe_get_flags(NULL, NULL, NULL, DEFAULT_VALUE), assert_int_equal 57 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(pcmk__xe_get_flags(xml, NULL, NULL, DEFAULT_VALUE), assert_int_equal 61 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, EINVAL); assert_int_equal 66 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, EINVAL); assert_int_equal 78 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(pcmk__xe_get_flags(NULL, "attribute", NULL, DEFAULT_VALUE), assert_int_equal 82 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, pcmk_rc_ok); assert_int_equal 85 lib/common/tests/output/pcmk__call_message_test.c assert_int_equal(out->message(out, "fake"), EINVAL); assert_int_equal 107 lib/common/tests/output/pcmk__call_message_test.c assert_int_equal(out->message(out, "msg1"), pcmk_rc_ok); assert_int_equal 109 lib/common/tests/output/pcmk__call_message_test.c assert_int_equal(out->message(out, "msg2"), pcmk_rc_ok); assert_int_equal 111 lib/common/tests/output/pcmk__call_message_test.c assert_int_equal(out->message(out, "fail"), pcmk_rc_no_output); assert_int_equal 128 lib/common/tests/output/pcmk__call_message_test.c assert_int_equal(out->message(out, "msg1"), EINVAL); assert_int_equal 147 lib/common/tests/output/pcmk__call_message_test.c assert_int_equal(out->message(out, "msg1"), pcmk_rc_ok); assert_int_equal 77 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, "fake", NULL, NULL), pcmk_rc_unknown_format); assert_int_equal 88 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, "text", NULL, NULL), ENOMEM); assert_int_equal 108 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, "text", "destfile", NULL), EPERM); assert_int_equal 118 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, "text", NULL, NULL), ENOMEM); assert_int_equal 126 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, "text", NULL, NULL), pcmk_rc_ok); assert_int_equal 140 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, NULL, NULL, NULL), pcmk_rc_ok); assert_int_equal 41 lib/common/tests/output/pcmk__register_format_test.c assert_int_equal(pcmk__register_format(NULL, "fake", null_create_fn, NULL), pcmk_rc_ok); assert_int_equal 43 lib/common/tests/output/pcmk__register_format_test.c assert_int_equal(g_hash_table_size(formatters), 1); assert_int_equal 51 lib/common/tests/output/pcmk__register_format_test.c assert_int_equal(pcmk__register_format(NULL, "fake", null_create_fn_2, NULL), pcmk_rc_ok); assert_int_equal 53 lib/common/tests/output/pcmk__register_format_test.c assert_int_equal(g_hash_table_size(formatters), 1); assert_int_equal 57 lib/common/tests/output/pcmk__register_formats_test.c assert_int_equal(g_hash_table_size(formatters), 2); assert_int_equal 77 lib/common/tests/output/pcmk__register_formats_test.c assert_int_equal(g_hash_table_size(formatters), 1); assert_int_equal 96 lib/common/tests/output/pcmk__register_formats_test.c assert_int_equal(g_hash_table_size(formatters), 2); assert_int_equal 88 lib/common/tests/output/pcmk__register_message_test.c assert_int_equal(g_hash_table_size(out->messages), 0); assert_int_equal 92 lib/common/tests/output/pcmk__register_message_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 99 lib/common/tests/output/pcmk__register_message_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 84 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 0); assert_int_equal 102 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 2); assert_int_equal 122 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 141 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 2); assert_int_equal 160 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 179 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 35 lib/common/tests/procfs/pcmk__procfs_pid2path_test.c assert_int_equal(pcmk__procfs_pid2path(1000, path, len), ENOENT); assert_int_equal 57 lib/common/tests/procfs/pcmk__procfs_pid2path_test.c assert_int_equal(pcmk__procfs_pid2path(1000, path, len), assert_int_equal 80 lib/common/tests/procfs/pcmk__procfs_pid2path_test.c assert_int_equal(pcmk__procfs_pid2path((pid_t) 1000, path, len), assert_int_equal 46 lib/common/tests/results/pcmk__results_test.c assert_int_equal(pcmk_rc2exitc(pcmk_rc_ok), CRM_EX_OK); assert_int_equal 47 lib/common/tests/results/pcmk__results_test.c assert_int_equal(pcmk_rc2exitc(-7777777), CRM_EX_ERROR); assert_int_equal 22 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type(NULL, NULL, pcmk__type_string), 0); assert_int_equal 30 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("0", "1", pcmk__type_unknown), 0); assert_int_equal 31 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("hi", "bye", pcmk__type_unknown), 0); assert_int_equal 32 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("-1.0", "2.0", pcmk__type_unknown), 0); assert_int_equal 38 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("bye", "bye", pcmk__type_string), 0); assert_int_equal 39 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("bye", "BYE", pcmk__type_string), 0); assert_int_equal 52 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("0", "0", pcmk__type_integer), 0); assert_int_equal 62 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("0", "x", pcmk__type_integer), assert_int_equal 64 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("x", "0", pcmk__type_integer), assert_int_equal 66 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("x", "X", pcmk__type_integer), assert_int_equal 73 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("0", "0.0", pcmk__type_number), 0); assert_int_equal 79 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("0.0", "x", pcmk__type_number), assert_int_equal 81 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("x", "0.0", pcmk__type_number), assert_int_equal 83 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("x", "X", pcmk__type_number), assert_int_equal 90 lib/common/tests/rules/pcmk__cmp_by_type_test.c assert_int_equal(pcmk__cmp_by_type("1.0", "1.0", pcmk__type_version), 0); assert_int_equal 90 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c assert_int_equal(pcmk__evaluate_attr_expression(xml, &rule_input), assert_int_equal 112 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c assert_int_equal(pcmk__evaluate_attr_expression(NULL, NULL), EINVAL); assert_int_equal 113 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c assert_int_equal(pcmk__evaluate_attr_expression(xml, NULL), EINVAL); assert_int_equal 114 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c assert_int_equal(pcmk__evaluate_attr_expression(NULL, &rule_input), EINVAL); assert_int_equal 48 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(NULL, NULL, next_change), EINVAL); assert_int_equal 51 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, NULL, next_change), EINVAL); assert_int_equal 54 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(NULL, &rule_input, next_change), assert_int_equal 69 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, next_change), assert_int_equal 89 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), assert_int_equal 111 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), assert_int_equal 134 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, next_change), assert_int_equal 136 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(crm_time_compare(next_change, reference), 0); assert_int_equal 154 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), assert_int_equal 169 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), assert_int_equal 184 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), assert_int_equal 48 lib/common/tests/rules/pcmk__evaluate_date_expression_test.c assert_int_equal(pcmk__evaluate_date_expression(xml, now, next_change), assert_int_equal 55 lib/common/tests/rules/pcmk__evaluate_date_expression_test.c assert_int_equal(crm_time_compare(next_change, reference), 0); assert_int_equal 72 lib/common/tests/rules/pcmk__evaluate_date_expression_test.c assert_int_equal(pcmk__evaluate_date_expression(NULL, NULL, NULL), EINVAL); assert_int_equal 73 lib/common/tests/rules/pcmk__evaluate_date_expression_test.c assert_int_equal(pcmk__evaluate_date_expression(xml, NULL, NULL), EINVAL); assert_int_equal 74 lib/common/tests/rules/pcmk__evaluate_date_expression_test.c assert_int_equal(pcmk__evaluate_date_expression(NULL, t, NULL), EINVAL); assert_int_equal 238 lib/common/tests/rules/pcmk__evaluate_date_expression_test.c assert_int_equal(pcmk__evaluate_date_expression(xml, t, NULL), assert_int_equal 26 lib/common/tests/rules/pcmk__evaluate_date_spec_test.c assert_int_equal(pcmk__evaluate_date_spec(xml, tm), expected); assert_int_equal 40 lib/common/tests/rules/pcmk__evaluate_date_spec_test.c assert_int_equal(pcmk__evaluate_date_spec(NULL, NULL), EINVAL); assert_int_equal 41 lib/common/tests/rules/pcmk__evaluate_date_spec_test.c assert_int_equal(pcmk__evaluate_date_spec(xml, NULL), EINVAL); assert_int_equal 42 lib/common/tests/rules/pcmk__evaluate_date_spec_test.c assert_int_equal(pcmk__evaluate_date_spec(NULL, tm), EINVAL); assert_int_equal 42 lib/common/tests/rules/pcmk__evaluate_op_expression_test.c assert_int_equal(pcmk__evaluate_op_expression(xml, &rule_input), assert_int_equal 62 lib/common/tests/rules/pcmk__evaluate_op_expression_test.c assert_int_equal(pcmk__evaluate_op_expression(NULL, NULL), EINVAL); assert_int_equal 65 lib/common/tests/rules/pcmk__evaluate_op_expression_test.c assert_int_equal(pcmk__evaluate_op_expression(xml, NULL), EINVAL); assert_int_equal 43 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c assert_int_equal(pcmk__evaluate_rsc_expression(xml, &rule_input), assert_int_equal 64 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c assert_int_equal(pcmk__evaluate_rsc_expression(NULL, NULL), EINVAL); assert_int_equal 67 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c assert_int_equal(pcmk__evaluate_rsc_expression(xml, NULL), EINVAL); assert_int_equal 20 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine(NULL), pcmk__combine_and); assert_int_equal 26 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine(""), pcmk__combine_unknown); assert_int_equal 27 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine(" "), pcmk__combine_unknown); assert_int_equal 28 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine("but"), pcmk__combine_unknown); assert_int_equal 34 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine(PCMK_VALUE_AND), pcmk__combine_and); assert_int_equal 35 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine(PCMK_VALUE_OR), pcmk__combine_or); assert_int_equal 41 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine("And"), assert_int_equal 44 lib/common/tests/rules/pcmk__parse_combine_test.c assert_int_equal(pcmk__parse_combine("OR"), assert_int_equal 21 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(NULL), pcmk__comparison_unknown); assert_int_equal 27 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison("nope"), pcmk__comparison_unknown); assert_int_equal 33 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_DEFINED), assert_int_equal 36 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_NOT_DEFINED), assert_int_equal 39 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_EQ), assert_int_equal 42 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_NE), assert_int_equal 45 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_LT), assert_int_equal 48 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_LTE), assert_int_equal 51 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_GT), assert_int_equal 54 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison(PCMK_VALUE_GTE), assert_int_equal 61 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison("DEFINED"), assert_int_equal 64 lib/common/tests/rules/pcmk__parse_comparison_test.c assert_int_equal(pcmk__parse_comparison("Not_Defined"), assert_int_equal 21 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source(NULL), pcmk__source_literal); assert_int_equal 27 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source(""), pcmk__source_unknown); assert_int_equal 28 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source(" "), pcmk__source_unknown); assert_int_equal 29 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source("params"), pcmk__source_unknown); assert_int_equal 35 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source(PCMK_VALUE_LITERAL), assert_int_equal 38 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source(PCMK_VALUE_PARAM), assert_int_equal 41 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source(PCMK_VALUE_META), assert_int_equal 48 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source("LITERAL"), assert_int_equal 51 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source("Param"), assert_int_equal 54 lib/common/tests/rules/pcmk__parse_source_test.c assert_int_equal(pcmk__parse_source("MeTa"), assert_int_equal 21 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type("nope", pcmk__comparison_unknown, assert_int_equal 29 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(PCMK_VALUE_STRING, assert_int_equal 33 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(PCMK_VALUE_INTEGER, assert_int_equal 37 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(PCMK_VALUE_NUMBER, assert_int_equal 41 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(PCMK_VALUE_VERSION, assert_int_equal 49 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type("STRING", pcmk__comparison_unknown, assert_int_equal 53 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type("Integer", pcmk__comparison_unknown, assert_int_equal 61 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_lt, "1.0", "2.5"), assert_int_equal 64 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_lte, "1.", "2"), assert_int_equal 67 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_gt, "1", ".5"), assert_int_equal 70 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_gte, "1.0", "2"), assert_int_equal 77 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_lt, "1", "2"), assert_int_equal 80 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_lte, "1", "2"), assert_int_equal 83 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_gt, "1", "2"), assert_int_equal 86 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_gte, "1", "2"), assert_int_equal 89 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_gte, NULL, NULL), assert_int_equal 92 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_gte, "1", NULL), assert_int_equal 95 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_gte, NULL, "2.5"), assert_int_equal 102 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_unknown, assert_int_equal 106 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_defined, assert_int_equal 110 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_undefined, assert_int_equal 114 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_eq, NULL, NULL), assert_int_equal 117 lib/common/tests/rules/pcmk__parse_type_test.c assert_int_equal(pcmk__parse_type(NULL, pcmk__comparison_ne, NULL, NULL), assert_int_equal 36 lib/common/tests/rules/pcmk__replace_submatches_test.c assert_int_equal(strcmp(expanded, reference), 0); assert_int_equal 37 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(NULL, NULL, NULL), EINVAL); assert_int_equal 38 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(duration, NULL, NULL), EINVAL); assert_int_equal 39 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(duration, start, NULL), EINVAL); assert_int_equal 40 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(duration, NULL, &end), EINVAL); assert_int_equal 41 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(NULL, start, NULL), EINVAL); assert_int_equal 42 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(NULL, start, &end), EINVAL); assert_int_equal 43 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(NULL, NULL, &end), EINVAL); assert_int_equal 56 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(duration, start, &end), EINVAL); assert_int_equal 71 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(duration, start, &end), pcmk_rc_ok); assert_int_equal 72 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(crm_time_compare(end, reference), 0); assert_int_equal 88 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(duration, start, &end), assert_int_equal 90 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(crm_time_compare(end, reference), 0); assert_int_equal 106 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(pcmk__unpack_duration(duration, start, &end), pcmk_rc_ok); assert_int_equal 107 lib/common/tests/rules/pcmk__unpack_duration_test.c assert_int_equal(crm_time_compare(end, reference), 0); assert_int_equal 49 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(NULL, NULL, next_change), assert_int_equal 53 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, NULL, next_change), EINVAL); assert_int_equal 56 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(NULL, &rule_input, next_change), assert_int_equal 76 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, next_change), assert_int_equal 93 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(rule_xml, &rule_input, next_change), assert_int_equal 108 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(rule_xml, &rule_input, next_change), assert_int_equal 123 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 139 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 155 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 176 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 198 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 219 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); assert_int_equal 236 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); assert_int_equal 256 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 277 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 298 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); assert_int_equal 318 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); assert_int_equal 336 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); assert_int_equal 356 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), assert_int_equal 18 lib/common/tests/scheduler/pcmk_get_no_quorum_policy_test.c assert_int_equal(pcmk_get_no_quorum_policy(NULL), pcmk_no_quorum_stop); assert_int_equal 28 lib/common/tests/scheduler/pcmk_get_no_quorum_policy_test.c assert_int_equal(pcmk_get_no_quorum_policy(&scheduler), assert_int_equal 20 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_int_equal(pcmk_set_scheduler_cib(NULL, NULL), EINVAL); assert_int_equal 21 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_int_equal(pcmk_set_scheduler_cib(NULL, cib), EINVAL); assert_int_equal 33 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_int_equal(pcmk_set_scheduler_cib(&scheduler, NULL), pcmk_rc_ok); assert_int_equal 45 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_int_equal(pcmk_set_scheduler_cib(&scheduler, cib), pcmk_rc_ok); assert_int_equal 60 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_int_equal(pcmk_set_scheduler_cib(&scheduler, new_cib), pcmk_rc_ok); assert_int_equal 125 lib/common/tests/schemas/crm_schema_init_test.c assert_int_equal(schema_index, schema->schema_index); assert_int_equal 94 lib/common/tests/schemas/pcmk__build_schema_xml_node_test.c assert_int_equal(pcmk__xml_first_child(file_node)->type, XML_CDATA_SECTION_NODE); assert_int_equal 130 lib/common/tests/schemas/pcmk__build_schema_xml_node_test.c assert_int_equal(pcmk__xml_first_child(file_node)->type, XML_CDATA_SECTION_NODE); assert_int_equal 146 lib/common/tests/schemas/pcmk__build_schema_xml_node_test.c assert_int_equal(pcmk__xml_first_child(file_node)->type, XML_CDATA_SECTION_NODE); assert_int_equal 48 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(schema->schema_index, schema_index); assert_int_equal 69 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(0, rename(SCHEMA_PREFIX "3.0.rng", assert_int_equal 73 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(0, rename(SCHEMA_PREFIX "3.0.bak", assert_int_equal 84 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(0, rename(SCHEMA_PREFIX "3.0.rng", assert_int_equal 86 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(0, rename(SCHEMA_PREFIX "2.0.rng", assert_int_equal 90 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(0, rename(SCHEMA_PREFIX "2.0.bak", assert_int_equal 92 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(0, rename(SCHEMA_PREFIX "3.0.bak", assert_int_equal 45 lib/common/tests/schemas/pcmk__get_schema_test.c assert_int_equal(schema->schema_index, expected_index); assert_int_equal 46 lib/common/tests/schemas/pcmk__schema_files_later_than_test.c assert_int_equal(g_list_length(schemas), 18); assert_int_equal 70 lib/common/tests/schemas/pcmk__schema_files_later_than_test.c assert_int_equal(g_list_length(schemas), 14); assert_int_equal 89 lib/common/tests/schemas/pcmk__schema_files_later_than_test.c assert_int_equal(g_list_length(schemas), 5); assert_int_equal 21 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score(NULL), 0); assert_int_equal 27 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("PQRST"), 0); assert_int_equal 28 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("3.141592"), 3); assert_int_equal 29 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("0xf00d"), 0); assert_int_equal 35 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("-INFINITY"), -PCMK_SCORE_INFINITY); assert_int_equal 36 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("INFINITY"), PCMK_SCORE_INFINITY); assert_int_equal 37 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("+INFINITY"), PCMK_SCORE_INFINITY); assert_int_equal 43 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("red"), pcmk__score_red); assert_int_equal 44 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("green"), pcmk__score_green); assert_int_equal 45 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("yellow"), pcmk__score_yellow); assert_int_equal 47 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("ReD"), pcmk__score_red); assert_int_equal 48 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("GrEeN"), pcmk__score_green); assert_int_equal 49 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("yElLoW"), pcmk__score_yellow); assert_int_equal 59 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score(B(PCMK_SCORE_INFINITY) "00"), assert_int_equal 61 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("-" B(PCMK_SCORE_INFINITY) "00"), assert_int_equal 68 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("1234"), 1234); assert_int_equal 69 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("-1234"), -1234); assert_int_equal 17 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-PCMK_SCORE_INFINITY, assert_int_equal 20 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-PCMK_SCORE_INFINITY, -1), assert_int_equal 22 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-PCMK_SCORE_INFINITY, 0), assert_int_equal 24 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-PCMK_SCORE_INFINITY, 1), assert_int_equal 26 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-PCMK_SCORE_INFINITY, assert_int_equal 34 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-1, -PCMK_SCORE_INFINITY), assert_int_equal 36 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, -PCMK_SCORE_INFINITY), assert_int_equal 38 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(1, -PCMK_SCORE_INFINITY), assert_int_equal 40 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(PCMK_SCORE_INFINITY, assert_int_equal 48 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(PCMK_SCORE_INFINITY, PCMK_SCORE_INFINITY), assert_int_equal 50 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(PCMK_SCORE_INFINITY, -1), assert_int_equal 52 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(PCMK_SCORE_INFINITY, 0), assert_int_equal 54 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(PCMK_SCORE_INFINITY, 1), assert_int_equal 61 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-1, PCMK_SCORE_INFINITY), assert_int_equal 63 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, PCMK_SCORE_INFINITY), assert_int_equal 65 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(1, PCMK_SCORE_INFINITY), assert_int_equal 72 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(INT_MAX, INT_MAX), PCMK_SCORE_INFINITY); assert_int_equal 73 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(INT_MIN, INT_MIN), -PCMK_SCORE_INFINITY); assert_int_equal 74 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(2000000, 50), PCMK_SCORE_INFINITY); assert_int_equal 75 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(PCMK_SCORE_INFINITY/2, assert_int_equal 78 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-PCMK_SCORE_INFINITY/2, assert_int_equal 81 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-4000000, 50), -PCMK_SCORE_INFINITY); assert_int_equal 87 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, 0), 0); assert_int_equal 88 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, 100), 100); assert_int_equal 89 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(200, 0), 200); assert_int_equal 90 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(200, -50), 150); assert_int_equal 29 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(rc, expected_rc); assert_int_equal 30 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(score, expected_score); assert_int_equal 52 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(pcmk_parse_score(NULL, NULL, default_score), pcmk_rc_ok); assert_int_equal 53 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(pcmk_parse_score("0", NULL, default_score), pcmk_rc_ok); assert_int_equal 54 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(pcmk_parse_score("foo", NULL, default_score), assert_int_equal 16 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(NULL), PCMK__PARSE_INT_DEFAULT); assert_int_equal 17 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" "), PCMK__PARSE_INT_DEFAULT); assert_int_equal 18 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("abcxyz"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 19 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100xs"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 20 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 xs "), PCMK__PARSE_INT_DEFAULT); assert_int_equal 21 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("-100ms"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 23 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("3.xs"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 24 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3. xs "), PCMK__PARSE_INT_DEFAULT); assert_int_equal 25 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("3.14xs"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 26 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14 xs "), PCMK__PARSE_INT_DEFAULT); assert_int_equal 31 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100"), 100000); assert_int_equal 32 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 "), 100000); assert_int_equal 33 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("\t100\n"), 100000); assert_int_equal 35 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100ms"), 100); assert_int_equal 36 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 ms "), 100); assert_int_equal 37 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100 MSEC"), 100); assert_int_equal 38 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1000US"), 1); assert_int_equal 39 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1000usec"), 1); assert_int_equal 40 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("12s"), 12000); assert_int_equal 41 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("12 sec"), 12000); assert_int_equal 42 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1m"), 60000); assert_int_equal 43 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("13 min"), 780000); assert_int_equal 44 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("2\th"), 7200000); assert_int_equal 45 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1 hr"), 3600000); assert_int_equal 47 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("3."), 3000); assert_int_equal 48 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3. ms "), 3); assert_int_equal 49 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("3.14"), 3000); assert_int_equal 50 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14 ms "), 3); assert_int_equal 53 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("3.14."), 3000); assert_int_equal 54 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14. ms "), 3); assert_int_equal 55 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("3.14.159"), 3000); assert_int_equal 56 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14.159 "), 3000); assert_int_equal 57 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("3.14.159ms"), 3); assert_int_equal 58 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14.159 ms "), 3); assert_int_equal 61 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 mshr "), 100); assert_int_equal 62 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 ms hr "), 100); assert_int_equal 63 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 sasdf "), 100000); assert_int_equal 64 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 s asdf "), 100000); assert_int_equal 65 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14 shour "), 3000); assert_int_equal 66 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14 s hour "), 3000); assert_int_equal 67 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 3.14 ms!@#$ "), 3); assert_int_equal 72 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("9223372036854775807s"), LLONG_MAX); assert_int_equal 16 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean(NULL, NULL), -1); assert_int_equal 17 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("", NULL), -1); assert_int_equal 18 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("blahblah", NULL), -1); assert_int_equal 25 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("true", &ret), 1); assert_int_equal 27 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("TrUe", &ret), 1); assert_int_equal 29 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("on", &ret), 1); assert_int_equal 31 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("ON", &ret), 1); assert_int_equal 33 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yes", &ret), 1); assert_int_equal 35 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yES", &ret), 1); assert_int_equal 37 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("y", &ret), 1); assert_int_equal 39 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("Y", &ret), 1); assert_int_equal 41 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("1", &ret), 1); assert_int_equal 45 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("true", NULL), 1); assert_int_equal 46 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("on", NULL), 1); assert_int_equal 47 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yes", NULL), 1); assert_int_equal 48 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("y", NULL), 1); assert_int_equal 49 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("1", NULL), 1); assert_int_equal 54 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("truedat", NULL), -1); assert_int_equal 55 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("onnn", NULL), -1); assert_int_equal 56 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yep", NULL), -1); assert_int_equal 57 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("Y!", NULL), -1); assert_int_equal 58 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("100", NULL), -1); assert_int_equal 65 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("false", &ret), 1); assert_int_equal 67 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("fAlSe", &ret), 1); assert_int_equal 69 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("off", &ret), 1); assert_int_equal 71 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("OFF", &ret), 1); assert_int_equal 73 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("no", &ret), 1); assert_int_equal 75 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("No", &ret), 1); assert_int_equal 77 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("n", &ret), 1); assert_int_equal 79 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("N", &ret), 1); assert_int_equal 81 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("0", &ret), 1); assert_int_equal 85 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("false", NULL), 1); assert_int_equal 86 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("off", NULL), 1); assert_int_equal 87 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("no", NULL), 1); assert_int_equal 88 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("n", NULL), 1); assert_int_equal 89 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("0", NULL), 1); assert_int_equal 94 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("falseee", NULL), -1); assert_int_equal 95 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("of", NULL), -1); assert_int_equal 96 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("nope", NULL), -1); assert_int_equal 97 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("N!", NULL), -1); assert_int_equal 98 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("000", NULL), -1); assert_int_equal 21 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, "hello world"), 0); assert_int_equal 32 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, "hello world"), 0); assert_int_equal 44 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, "hello"), 0); assert_int_equal 56 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, assert_int_equal 69 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, assert_int_equal 82 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, assert_int_equal 26 lib/common/tests/strings/pcmk__compress_test.c assert_int_equal(pcmk__compress(SIMPLE_DATA, 40, 0, &result, &len), pcmk_rc_ok); assert_int_equal 36 lib/common/tests/strings/pcmk__compress_test.c assert_int_equal(pcmk__compress(SIMPLE_DATA, 40, 10, &result, &len), EFBIG); assert_int_equal 22 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(NULL, "abc", 123, &result), EINVAL); assert_int_equal 23 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, NULL, 123, &result), EINVAL); assert_int_equal 34 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "abc", 123, &result), pcmk_rc_ok); assert_int_equal 35 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 123); assert_int_equal 48 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "abc", 456, &result), pcmk_rc_ok); assert_int_equal 49 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 123); assert_int_equal 64 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "negative", 456, &result), ERANGE); assert_int_equal 65 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 456); assert_int_equal 67 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "toobig", 456, &result), ERANGE); assert_int_equal 68 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 456); assert_int_equal 70 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "baddata", 456, &result), EINVAL); assert_int_equal 71 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 456); assert_int_equal 26 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("abcd", "efgh"), -1); assert_int_equal 27 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("abcd", "abcd"), 0); assert_int_equal 28 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("efgh", "abcd"), 1); assert_int_equal 30 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("AbCd", "eFgH"), -1); assert_int_equal 31 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("ABCD", "abcd"), 0); assert_int_equal 32 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("EFgh", "ABcd"), 1); assert_int_equal 38 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1", "node2"), -1); assert_int_equal 39 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1", "node1"), 0); assert_int_equal 40 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node2", "node1"), 1); assert_int_equal 42 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1", "node10"), -1); assert_int_equal 43 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node10", "node10"), 0); assert_int_equal 44 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node10", "node1"), 1); assert_int_equal 46 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node10", "remotenode9"), -1); assert_int_equal 47 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("remotenode9", "node10"), 1); assert_int_equal 50 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node001", "node1"), 1); assert_int_equal 51 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1", "node001"), -1); assert_int_equal 57 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1abc", "node1def"), -1); assert_int_equal 58 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1def", "node1abc"), 1); assert_int_equal 60 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1abc", "node2abc"), -1); assert_int_equal 61 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node2abc", "node1abc"), 1); assert_int_equal 67 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node-ab", "node-abc"), -1); assert_int_equal 68 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node-abc", "node-ab"), 1); assert_int_equal 70 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1ab", "node1abc"), -1); assert_int_equal 71 lib/common/tests/strings/pcmk__numeric_strcasecmp_test.c assert_int_equal(pcmk__numeric_strcasecmp("node1abc", "node1ab"), 1); assert_int_equal 19 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range(NULL, &start, &end), ENODATA); assert_int_equal 20 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("", &start, &end), ENODATA); assert_int_equal 37 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("1234", &start, &end), pcmk_rc_ok); assert_int_equal 38 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, 1234); assert_int_equal 39 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, 1234); assert_int_equal 47 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("-", &start, &end), pcmk_rc_bad_input); assert_int_equal 48 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 49 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 57 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("2000-", &start, &end), pcmk_rc_ok); assert_int_equal 58 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, 2000); assert_int_equal 59 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 67 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("-2020", &start, &end), pcmk_rc_ok); assert_int_equal 68 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 69 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, 2020); assert_int_equal 77 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("2000-2020", &start, &end), pcmk_rc_ok); assert_int_equal 78 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, 2000); assert_int_equal 79 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, 2020); assert_int_equal 81 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("2000-2020-2030", &start, &end), pcmk_rc_bad_input); assert_int_equal 89 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("2000x-", &start, &end), pcmk_rc_bad_input); assert_int_equal 90 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 91 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 93 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("-x2000", &start, &end), pcmk_rc_bad_input); assert_int_equal 94 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 95 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 103 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("20000000000000000000-", &start, &end), EOVERFLOW); assert_int_equal 104 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("100-20000000000000000000", &start, &end), EOVERFLOW); assert_int_equal 34 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(NULL, &result, NULL, NULL), EINVAL); assert_int_equal 37 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("", &result, NULL, NULL), EINVAL); assert_int_equal 41 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(NULL, &result, "2.0", NULL), pcmk_rc_ok); assert_int_equal 44 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("", &result, "2.0", NULL), EINVAL); assert_int_equal 54 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("asdf", &result, NULL, NULL), EINVAL); assert_int_equal 57 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("as2.0", &result, NULL, NULL), EINVAL); assert_int_equal 61 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("asdf", &result, "2.0", NULL), EINVAL); assert_int_equal 64 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("as2.0", &result, "2.0", NULL), EINVAL); assert_int_equal 74 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("2.0asdf", &result, NULL, &end_text), pcmk_rc_ok); assert_int_equal 91 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("0.0", &result, NULL, NULL), pcmk_rc_ok); assert_int_equal 94 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("1.0", &result, NULL, NULL), pcmk_rc_ok); assert_int_equal 97 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("-1.0", &result, NULL, NULL), pcmk_rc_ok); assert_int_equal 101 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_ok); assert_int_equal 105 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_ok); assert_int_equal 120 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), EOVERFLOW); assert_int_equal 124 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), EOVERFLOW); assert_int_equal 141 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_underflow); assert_int_equal 146 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_underflow); assert_int_equal 19 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll(NULL, &result, 47), pcmk_rc_ok); assert_int_equal 20 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 47); assert_int_equal 28 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("asdf", &result, 47), EINVAL); assert_int_equal 29 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 47); assert_int_equal 30 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("as12", &result, 47), EINVAL); assert_int_equal 31 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 47); assert_int_equal 39 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("12as", &result, 47), pcmk_rc_ok); assert_int_equal 40 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 12); assert_int_equal 46 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("1234", NULL, 47), pcmk_rc_ok); assert_int_equal 47 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("asdf", NULL, 47), EINVAL); assert_int_equal 55 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("1234", &result, 47), pcmk_rc_ok); assert_int_equal 56 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 1234); assert_int_equal 19 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("", &result, 1), EINVAL); assert_int_equal 20 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1); assert_int_equal 22 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int(NULL, &result, 1), pcmk_rc_ok); assert_int_equal 23 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1); assert_int_equal 31 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("100", &result, 1024), pcmk_rc_ok); assert_int_equal 32 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1024); assert_int_equal 40 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("20000000000000000", &result, 100), EOVERFLOW); assert_int_equal 41 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, INT_MAX); assert_int_equal 49 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("1024", &result, 1024), pcmk_rc_ok); assert_int_equal 50 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1024); assert_int_equal 52 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("2048", &result, 1024), pcmk_rc_ok); assert_int_equal 53 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 2048); assert_int_equal 19 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("", &result), EINVAL); assert_int_equal 20 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); assert_int_equal 28 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("abc", &result), EINVAL); assert_int_equal 29 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); assert_int_equal 37 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("-1", &result), pcmk_rc_before_range); assert_int_equal 38 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); assert_int_equal 39 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("65536", &result), pcmk_rc_after_range); assert_int_equal 40 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); assert_int_equal 48 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("0", &result), pcmk_rc_ok); assert_int_equal 49 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, 0); assert_int_equal 51 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("80", &result), pcmk_rc_ok); assert_int_equal 52 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, 80); assert_int_equal 29 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_int_equal(g_hash_table_size(copy), 0); assert_int_equal 46 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_int_equal(g_hash_table_size(copy), 3); assert_int_equal 19 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, s1, pcmk__str_none), 0); assert_int_equal 23 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(NULL, NULL, pcmk__str_none), 0); assert_int_equal 30 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, NULL, pcmk__str_null_matches), 0); assert_int_equal 32 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(NULL, s1, pcmk__str_null_matches), 0); assert_int_equal 53 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, s2, pcmk__str_casei), 0); assert_int_equal 64 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, "a..d", pcmk__str_regex), 0); assert_int_equal 68 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s2, "a..d", pcmk__str_regex|pcmk__str_casei), 0); assert_int_equal 25 lib/common/tests/strings/pcmk__strikey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); assert_int_equal 29 lib/common/tests/strings/pcmk__strikey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); assert_int_equal 33 lib/common/tests/strings/pcmk__strikey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); assert_int_equal 25 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); assert_int_equal 29 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); assert_int_equal 33 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 2); assert_int_equal 17 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version(NULL, NULL), 0); assert_int_equal 18 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version(NULL, "abc"), -1); assert_int_equal 19 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version(NULL, "1.0.1"), -1); assert_int_equal 20 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("abc", NULL), 1); assert_int_equal 21 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1.0.1", NULL), 1); assert_int_equal 27 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("0.4.7", "0.4.7"), 0); assert_int_equal 28 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1.0", "1.0"), 0); assert_int_equal 34 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("0.4.7", "0.4.8"), -1); assert_int_equal 35 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("0.4.8", "0.4.7"), 1); assert_int_equal 37 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("0.2.3", "0.3"), -1); assert_int_equal 38 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("0.3", "0.2.3"), 1); assert_int_equal 40 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("0.99", "1.0"), -1); assert_int_equal 41 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1.0", "0.99"), 1); assert_int_equal 47 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1.0", "1.0.1"), -1); assert_int_equal 48 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1.0.1", "1.0"), 1); assert_int_equal 49 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1.0", "1"), 0); assert_int_equal 50 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1", "1.2"), -1); assert_int_equal 51 lib/common/tests/utils/compare_version_test.c assert_int_equal(compare_version("1.2", "1"), 1); assert_int_equal 30 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), -ENOMEM); assert_int_equal 52 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), -EIO); assert_int_equal 74 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), -EINVAL); assert_int_equal 103 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", NULL, NULL), 0); assert_int_equal 116 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), 0); assert_int_equal 117 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(uid, 1000); assert_int_equal 118 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(gid, 1000); assert_int_equal 37 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(pcmk_daemon_user(&uid, &gid), -ENOENT); assert_int_equal 66 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(pcmk_daemon_user(NULL, NULL), 0); assert_int_equal 74 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(pcmk_daemon_user(&uid, &gid), 0); assert_int_equal 75 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(uid, 1000); assert_int_equal 76 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(gid, 1000); assert_int_equal 19 lib/common/tests/xml/crm_xml_init_test.c assert_int_equal(XML_BUFFER_ALLOC_DOUBLEIT, xmlGetBufferAllocationScheme()); assert_int_equal 33 lib/common/tests/xml/pcmk__xc_create_test.c assert_int_equal(node->type, XML_COMMENT_NODE); assert_int_equal 45 lib/common/tests/xml/pcmk__xc_create_test.c assert_int_equal(nodepriv->check, PCMK__XML_NODE_PRIVATE_MAGIC); assert_int_equal 22 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(NULL, NULL, pcmk__xaf_none), EINVAL); assert_int_equal 23 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(NULL, xml, pcmk__xaf_none), EINVAL); assert_int_equal 24 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(xml, NULL, pcmk__xaf_none), EINVAL); assert_int_equal 37 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_none), assert_int_equal 43 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_none), assert_int_equal 59 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_none), assert_int_equal 80 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_none), assert_int_equal 103 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_none), assert_int_equal 120 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_no_overwrite), assert_int_equal 128 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_no_overwrite), assert_int_equal 148 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_score_update), assert_int_equal 169 lib/common/tests/xml/pcmk__xe_copy_attrs_test.c assert_int_equal(pcmk__xe_copy_attrs(target, src, pcmk__xaf_none), assert_int_equal 197 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_int_equal(pcmk__xe_foreach_child(xml, "node1", stops_on_first_handler, NULL), pcmk_rc_error); assert_int_equal 200 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_int_equal(pcmk__xe_foreach_child(xml, "node2", stops_on_second_handler, NULL), pcmk_rc_error); assert_int_equal 203 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_int_equal(pcmk__xe_foreach_child(xml, "node3", stops_on_third_handler, NULL), pcmk_rc_error); assert_int_equal 32 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(rc, expected_rc); assert_int_equal 33 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(score, expected_score); assert_int_equal 43 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(NULL, NULL, &score, default_score), assert_int_equal 45 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, NULL, &score, default_score), assert_int_equal 47 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(NULL, "test", &score, default_score), assert_int_equal 73 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, "test_attr", NULL, default_score), assert_int_equal 77 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, "test_attr", NULL, default_score), assert_int_equal 81 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, "test_attr", NULL, default_score), assert_int_equal 37 lib/common/tests/xml/pcmk__xe_set_score_test.c assert_int_equal(pcmk__xe_set_score(test_xml, name, new), reference_rc); assert_int_equal 61 lib/common/tests/xml/pcmk__xe_set_score_test.c assert_int_equal(pcmk__xe_set_score(NULL, "X", "X++"), EINVAL); assert_int_equal 72 lib/common/tests/xml/pcmk__xe_set_score_test.c assert_int_equal(pcmk__xe_set_score(test_xml, NULL, "X++"), EINVAL); assert_int_equal 27 lib/common/tests/xml/pcmk__xml_new_doc_test.c assert_int_equal(doc->type, XML_DOCUMENT_NODE); assert_int_equal 31 lib/common/tests/xml/pcmk__xml_new_doc_test.c assert_int_equal(docpriv->check, PCMK__XML_DOC_PRIVATE_MAGIC); assert_int_equal 47 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_int_equal(strcmp(s, "xyz"), 0); assert_int_equal 52 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_int_equal(strcmp(s, "xyz"), 0); assert_int_equal 28 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_int_equal(pcmk_resource_delete(&xml, "rsc", "primitive"), ENOTCONN); assert_int_equal 61 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_int_equal(pcmk_resource_delete(&xml, "Fencing", NULL), EINVAL); assert_int_equal 66 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_int_equal(pcmk_resource_delete(&xml, NULL, "primitive"), EINVAL); assert_int_equal 103 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_int_equal(pcmk_resource_delete(&xml, "Fencing", "clone"), pcmk_rc_ok); assert_int_equal 119 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_int_equal(pcmk_resource_delete(&xml, "Fencing", "primitive"), pcmk_rc_ok); assert_int_equal 137 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_int_equal(pcmk_resource_delete(&xml, "no_such_resource", "primitive"), pcmk_rc_ok); assert_int_equal 31 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "ticketA", &xml), ENOTCONN); assert_int_equal 77 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "XYZ", &xml), ENXIO); assert_int_equal 92 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "ticketA", &xml), pcmk_rc_ok); assert_int_equal 98 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(numXpathResults(xpath_obj), 1); assert_int_equal 115 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, NULL, &xml), pcmk_rc_ok); assert_int_equal 122 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(numXpathResults(xpath_obj), 4); assert_int_equal 150 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "ticketC", &xml), pcmk_rc_duplicate_id); assert_int_equal 157 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(numXpathResults(xpath_obj), 2); assert_int_equal 28 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_constraints_test.c assert_int_equal(pcmk_ticket_constraints(&xml, NULL), ENOTCONN); assert_int_equal 56 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_constraints_test.c assert_int_equal(pcmk_ticket_constraints(NULL, "ticketA"), EINVAL); assert_int_equal 64 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_constraints_test.c assert_int_equal(pcmk_ticket_constraints(&xml, "XYZ"), ENXIO); assert_int_equal 75 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_constraints_test.c assert_int_equal(pcmk_ticket_constraints(&xml, "ticketA"), pcmk_rc_ok); assert_int_equal 84 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_constraints_test.c assert_int_equal(numXpathResults(xpath_obj), 1); assert_int_equal 96 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_constraints_test.c assert_int_equal(pcmk_ticket_constraints(&xml, NULL), pcmk_rc_ok); assert_int_equal 104 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_constraints_test.c assert_int_equal(numXpathResults(xpath_obj), 2); assert_int_equal 28 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, "ticketA", false), ENOTCONN); assert_int_equal 58 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(NULL, "ticketA", false), EINVAL); assert_int_equal 60 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, NULL, false), EINVAL); assert_int_equal 70 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, "XYZ", false), ENXIO); assert_int_equal 75 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, "XYZ", true), pcmk_rc_ok); assert_int_equal 85 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, "ticketB", false), EACCES); assert_int_equal 97 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, "ticketA", false), pcmk_rc_ok); assert_int_equal 118 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, "ticketB", true), pcmk_rc_ok); assert_int_equal 139 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c assert_int_equal(pcmk_ticket_delete(&xml, "ticketC", true), pcmk_rc_ok); assert_int_equal 44 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(NULL, "ticketA", "XYZ", NULL), EINVAL); assert_int_equal 46 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(&xml, NULL, "attrA", NULL), EINVAL); assert_int_equal 51 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(&xml, "ticketA", NULL, NULL), EINVAL); assert_int_equal 65 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(&xml, "XYZ", "attrA", NULL), ENXIO); assert_int_equal 70 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(&xml, "ticketA", "XYZ", NULL), ENXIO); assert_int_equal 86 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(numXpathResults(xpath_obj), 1); assert_int_equal 97 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(numXpathResults(xpath_obj), 1); assert_int_equal 111 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(&xml, "ticketA", "owner", NULL), pcmk_rc_ok); assert_int_equal 124 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(&xml, "ticketX", "ABC", "DEFAULT"), pcmk_rc_ok); assert_int_equal 137 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_int_equal(pcmk_ticket_get_attr(&xml, "ticketA", "ABC", "DEFAULT"), pcmk_rc_ok); assert_int_equal 42 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_int_equal(pcmk_ticket_info(NULL, "ticketA"), EINVAL); assert_int_equal 50 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_int_equal(pcmk_ticket_info(&xml, "XYZ"), ENXIO); assert_int_equal 62 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_int_equal(pcmk_ticket_info(&xml, NULL), pcmk_rc_ok); assert_int_equal 71 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_int_equal(numXpathResults(xpath_obj), 3); assert_int_equal 114 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_int_equal(pcmk_ticket_info(&xml, "ticketA"), pcmk_rc_ok); assert_int_equal 122 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_int_equal(numXpathResults(xpath_obj), 1); assert_int_equal 28 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, NULL, NULL, false), ENOTCONN); assert_int_equal 58 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(NULL, "ticketA", NULL, false), EINVAL); assert_int_equal 60 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, NULL, NULL, false), EINVAL); assert_int_equal 76 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, "XYZ", NULL, false), pcmk_rc_ok); assert_int_equal 86 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, "ticketA", NULL, false), pcmk_rc_ok); assert_int_equal 97 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, "XYZ", attrs, false), pcmk_rc_ok); assert_int_equal 120 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, "ticketA", attrs, false), pcmk_rc_ok); assert_int_equal 147 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, "ticketA", attrs, false), pcmk_rc_ok); assert_int_equal 173 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, "ticketB", attrs, false), EACCES); assert_int_equal 199 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c assert_int_equal(pcmk_ticket_remove_attr(&xml, "ticketB", attrs, true), pcmk_rc_ok); assert_int_equal 28 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, NULL, NULL, false), ENOTCONN); assert_int_equal 58 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(NULL, "ticketA", NULL, false), EINVAL); assert_int_equal 60 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, NULL, NULL, false), EINVAL); assert_int_equal 76 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "XYZ", NULL, false), pcmk_rc_ok); assert_int_equal 86 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "XYZ", attrs, false), pcmk_rc_ok); assert_int_equal 112 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "XYZ", attrs, false), pcmk_rc_ok); assert_int_equal 139 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "ticketA", attrs, false), pcmk_rc_ok); assert_int_equal 165 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "ticketA", attrs, false), EACCES); assert_int_equal 192 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "ticketA", attrs, true), pcmk_rc_ok); assert_int_equal 219 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "ticketB", attrs, false), EACCES); assert_int_equal 246 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c assert_int_equal(pcmk_ticket_set_attr(&xml, "ticketB", attrs, true), pcmk_rc_ok); assert_int_equal 28 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(pcmk_ticket_state(&xml, "ticketA"), ENOTCONN); assert_int_equal 56 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(pcmk_ticket_state(NULL, "ticketA"), EINVAL); assert_int_equal 64 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(pcmk_ticket_state(&xml, "XYZ"), ENXIO); assert_int_equal 75 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(pcmk_ticket_state(&xml, "ticketA"), pcmk_rc_ok); assert_int_equal 84 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(numXpathResults(xpath_obj), 1); assert_int_equal 96 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(pcmk_ticket_state(&xml, NULL), pcmk_rc_ok); assert_int_equal 104 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(numXpathResults(xpath_obj), 4); assert_int_equal 128 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(pcmk_ticket_state(&xml, "ticketC"), pcmk_rc_duplicate_id); assert_int_equal 136 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_state_test.c assert_int_equal(numXpathResults(xpath_obj), 2); assert_int_equal 36 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(scheduler->order_id, 1); assert_int_equal 37 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(scheduler->action_id, 1); assert_int_equal 38 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(scheduler->no_quorum_policy, pcmk_no_quorum_stop); assert_int_equal 39 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(scheduler->flags, flags); assert_int_equal 24 lib/pengine/tests/utils/pe__cmp_node_name_test.c assert_int_equal(pe__cmp_node_name(NULL, NULL), 0); assert_int_equal 28 lib/pengine/tests/utils/pe__cmp_node_name_test.c assert_int_equal(pe__cmp_node_name(&node1, &node2), 0); assert_int_equal 34 lib/pengine/tests/utils/pe__cmp_node_name_test.c assert_int_equal(pe__cmp_node_name(NULL, &node2), -1); assert_int_equal 39 lib/pengine/tests/utils/pe__cmp_node_name_test.c assert_int_equal(pe__cmp_node_name(&node1, &node2), -1); assert_int_equal 45 lib/pengine/tests/utils/pe__cmp_node_name_test.c assert_int_equal(pe__cmp_node_name(&node1, NULL), 1); assert_int_equal 49 lib/pengine/tests/utils/pe__cmp_node_name_test.c assert_int_equal(pe__cmp_node_name(&node1, &node2), 1); assert_int_equal 25 lib/pengine/tests/utils/pe__cmp_rsc_priority_test.c assert_int_equal(pe__cmp_rsc_priority(NULL, NULL), 0); assert_int_equal 26 lib/pengine/tests/utils/pe__cmp_rsc_priority_test.c assert_int_equal(pe__cmp_rsc_priority(&rsc1, &rsc2), 0); assert_int_equal 34 lib/pengine/tests/utils/pe__cmp_rsc_priority_test.c assert_int_equal(pe__cmp_rsc_priority(&rsc1, NULL), -1); assert_int_equal 35 lib/pengine/tests/utils/pe__cmp_rsc_priority_test.c assert_int_equal(pe__cmp_rsc_priority(&rsc1, &rsc2), -1); assert_int_equal 43 lib/pengine/tests/utils/pe__cmp_rsc_priority_test.c assert_int_equal(pe__cmp_rsc_priority(NULL, &rsc2), 1); assert_int_equal 44 lib/pengine/tests/utils/pe__cmp_rsc_priority_test.c assert_int_equal(pe__cmp_rsc_priority(&rsc1, &rsc2), 1);