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 25 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf", NULL, NULL, NULL), -EINVAL); assert_int_equal 26 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf:", NULL, NULL, NULL), -EINVAL); assert_int_equal 27 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf::", NULL, NULL, NULL), -EINVAL); assert_int_equal 32 lib/common/tests/agents/crm_parse_agent_spec_test.c assert_int_equal(crm_parse_agent_spec("ocf:pacemaker:", NULL, NULL, NULL), -EINVAL); assert_int_equal 41 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 56 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 72 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 20 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("ocf"), expected); assert_int_equal 21 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("OCF"), expected); assert_int_equal 29 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("stonith"), expected); assert_int_equal 30 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("StOnItH"), expected); assert_int_equal 35 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 36 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 37 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 38 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 39 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps("lsb"), 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("LSB"), 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 47 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 48 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 53 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 54 lib/common/tests/agents/pcmk_get_ra_caps_test.c assert_int_equal(pcmk_get_ra_caps(""), pcmk_ra_cap_none); assert_int_equal 55 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 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("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 38 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/dir/file"), 0); assert_int_equal 42 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/full/path"), 0); assert_int_equal 46 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/dir/../relative/path"), 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 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 46 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 49 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 51 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "c", &value), pcmk_rc_unknown_format); assert_int_equal 26 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 41 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 48 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 63 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 30000); assert_int_equal 70 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 85 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 92 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 99 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 114 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 121 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 128 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 141 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 153 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 180 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 185 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 198 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 203 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 208 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); 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 102 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, "text", "destfile", NULL), EPERM); assert_int_equal 112 lib/common/tests/output/pcmk__output_new_test.c assert_int_equal(pcmk__output_new(&out, "text", NULL, NULL), ENOMEM); assert_int_equal 120 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 134 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 86 lib/common/tests/output/pcmk__register_message_test.c assert_int_equal(g_hash_table_size(out->messages), 0); assert_int_equal 90 lib/common/tests/output/pcmk__register_message_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 97 lib/common/tests/output/pcmk__register_message_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 82 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 0); assert_int_equal 100 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 2); assert_int_equal 120 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 139 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 2); assert_int_equal 158 lib/common/tests/output/pcmk__register_messages_test.c assert_int_equal(g_hash_table_size(out->messages), 1); assert_int_equal 177 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 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"), -CRM_SCORE_INFINITY); assert_int_equal 36 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("INFINITY"), CRM_SCORE_INFINITY); assert_int_equal 37 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("+INFINITY"), CRM_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(CRM_SCORE_INFINITY) "00"), CRM_SCORE_INFINITY); assert_int_equal 60 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("-" B(CRM_SCORE_INFINITY) "00"), -CRM_SCORE_INFINITY); assert_int_equal 66 lib/common/tests/scores/char2score_test.c assert_int_equal(char2score("1234"), 1234); assert_int_equal 67 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(-CRM_SCORE_INFINITY, -CRM_SCORE_INFINITY), -CRM_SCORE_INFINITY); assert_int_equal 18 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-CRM_SCORE_INFINITY, -1), -CRM_SCORE_INFINITY); assert_int_equal 19 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-CRM_SCORE_INFINITY, 0), -CRM_SCORE_INFINITY); assert_int_equal 20 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-CRM_SCORE_INFINITY, 1), -CRM_SCORE_INFINITY); assert_int_equal 21 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-CRM_SCORE_INFINITY, CRM_SCORE_INFINITY), -CRM_SCORE_INFINITY); assert_int_equal 27 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-1, -CRM_SCORE_INFINITY), -CRM_SCORE_INFINITY); assert_int_equal 28 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, -CRM_SCORE_INFINITY), -CRM_SCORE_INFINITY); assert_int_equal 29 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(1, -CRM_SCORE_INFINITY), -CRM_SCORE_INFINITY); assert_int_equal 30 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(CRM_SCORE_INFINITY, -CRM_SCORE_INFINITY), -CRM_SCORE_INFINITY); assert_int_equal 36 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(CRM_SCORE_INFINITY, CRM_SCORE_INFINITY), CRM_SCORE_INFINITY); assert_int_equal 37 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(CRM_SCORE_INFINITY, -1), CRM_SCORE_INFINITY); assert_int_equal 38 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(CRM_SCORE_INFINITY, 0), CRM_SCORE_INFINITY); assert_int_equal 39 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(CRM_SCORE_INFINITY, 1), CRM_SCORE_INFINITY); assert_int_equal 45 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-1, CRM_SCORE_INFINITY), CRM_SCORE_INFINITY); assert_int_equal 46 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, CRM_SCORE_INFINITY), CRM_SCORE_INFINITY); assert_int_equal 47 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(1, CRM_SCORE_INFINITY), CRM_SCORE_INFINITY); assert_int_equal 53 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(INT_MAX, INT_MAX), CRM_SCORE_INFINITY); assert_int_equal 54 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(INT_MIN, INT_MIN), -CRM_SCORE_INFINITY); assert_int_equal 55 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(2000000, 50), CRM_SCORE_INFINITY); assert_int_equal 56 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(-4000000, 50), -CRM_SCORE_INFINITY); assert_int_equal 62 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, 0), 0); assert_int_equal 63 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(0, 100), 100); assert_int_equal 64 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(200, 0), 200); assert_int_equal 65 lib/common/tests/scores/pcmk__add_scores_test.c assert_int_equal(pcmk__add_scores(200, -50), 150); 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 26 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100"), 100000); assert_int_equal 27 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 "), 100000); assert_int_equal 28 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("\t100\n"), 100000); assert_int_equal 30 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100ms"), 100); assert_int_equal 31 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100 MSEC"), 100); assert_int_equal 32 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1000US"), 1); assert_int_equal 33 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1000usec"), 1); assert_int_equal 34 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("12s"), 12000); assert_int_equal 35 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("12 sec"), 12000); assert_int_equal 36 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1m"), 60000); assert_int_equal 37 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("13 min"), 780000); assert_int_equal 38 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("2\th"), 7200000); assert_int_equal 39 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1 hr"), 3600000); assert_int_equal 44 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 47 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("truedat", NULL), -1); assert_int_equal 48 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("onnn", NULL), -1); assert_int_equal 49 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yep", NULL), -1); assert_int_equal 50 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("Y!", NULL), -1); assert_int_equal 51 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("100", NULL), -1); assert_int_equal 58 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("false", &ret), 1); assert_int_equal 60 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("fAlSe", &ret), 1); assert_int_equal 62 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("off", &ret), 1); assert_int_equal 64 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("OFF", &ret), 1); assert_int_equal 66 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("no", &ret), 1); assert_int_equal 68 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("No", &ret), 1); assert_int_equal 70 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("n", &ret), 1); assert_int_equal 72 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("N", &ret), 1); assert_int_equal 74 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("0", &ret), 1); assert_int_equal 80 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("falseee", NULL), -1); assert_int_equal 81 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("of", NULL), -1); assert_int_equal 82 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("nope", NULL), -1); assert_int_equal 83 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("N!", NULL), -1); assert_int_equal 84 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), pcmk_rc_error); 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 63 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 64 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 456); assert_int_equal 66 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 67 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), pcmk_rc_unknown_format); assert_int_equal 20 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(pcmk__parse_ll_range("", &start, &end), pcmk_rc_unknown_format); 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_unknown_format); 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_unknown_format); 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_unknown_format); 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_unknown_format); 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), pcmk_rc_unknown_format); 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), pcmk_rc_unknown_format); 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_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 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 196 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 199 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 202 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 40 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_int_equal(strcmp(s, "xyz"), 0); assert_int_equal 44 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_int_equal(strcmp(s, "xyz"), 0); assert_int_equal 23 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c assert_int_equal(pe_cron_range_satisfied(tm, xml), expected); assert_int_equal 31 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c assert_int_equal(pe_cron_range_satisfied(NULL, NULL), pcmk_rc_op_unsatisfied); assert_int_equal 38 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c assert_int_equal(pe_cron_range_satisfied(tm, NULL), pcmk_rc_ok); assert_int_equal 34 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(data_set->order_id, 1); assert_int_equal 35 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(data_set->action_id, 1); assert_int_equal 36 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(data_set->no_quorum_policy, no_quorum_stop); assert_int_equal 37 lib/pengine/tests/status/set_working_set_defaults_test.c assert_int_equal(data_set->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);