assert_int_equal 21 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 20 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 22 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 28 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 30 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 36 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 38 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 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 22 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 24 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 26 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/dir/file"), 0); assert_int_equal 30 lib/common/tests/io/pcmk__full_path_test.c assert_int_equal(strcmp(path, "/full/path"), 0); assert_int_equal 34 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/operations/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 45 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 52 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 67 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 30000); assert_int_equal 74 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 89 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 96 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 103 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 118 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 125 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 132 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 145 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 157 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 60000); assert_int_equal 184 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 189 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 202 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 207 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 212 lib/common/tests/operations/parse_op_key_test.c assert_int_equal(ms, 0); assert_int_equal 50 lib/common/tests/results/pcmk__results_test.c assert_int_equal(pcmk_rc2exitc(pcmk_rc_ok), CRM_EX_OK); assert_int_equal 51 lib/common/tests/results/pcmk__results_test.c assert_int_equal(pcmk_rc2exitc(-7777777), CRM_EX_ERROR); assert_int_equal 20 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(NULL), PCMK__PARSE_INT_DEFAULT); assert_int_equal 21 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" "), PCMK__PARSE_INT_DEFAULT); assert_int_equal 22 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("abcxyz"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 23 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100xs"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 24 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec(" 100 xs "), PCMK__PARSE_INT_DEFAULT); assert_int_equal 25 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("-100ms"), PCMK__PARSE_INT_DEFAULT); assert_int_equal 30 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100"), 100000); 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("\t100\n"), 100000); assert_int_equal 34 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100ms"), 100); assert_int_equal 35 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("100 MSEC"), 100); assert_int_equal 36 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1000US"), 1); assert_int_equal 37 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1000usec"), 1); assert_int_equal 38 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("12s"), 12000); assert_int_equal 39 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("12 sec"), 12000); assert_int_equal 40 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1m"), 60000); assert_int_equal 41 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("13 min"), 780000); assert_int_equal 42 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("2\th"), 7200000); assert_int_equal 43 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("1 hr"), 3600000); assert_int_equal 48 lib/common/tests/strings/crm_get_msec_test.c assert_int_equal(crm_get_msec("9223372036854775807s"), LLONG_MAX); assert_int_equal 20 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean(NULL, NULL), -1); assert_int_equal 21 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("", NULL), -1); assert_int_equal 22 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("blahblah", NULL), -1); assert_int_equal 29 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("true", &ret), 1); assert_int_equal 31 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("TrUe", &ret), 1); assert_int_equal 33 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("on", &ret), 1); assert_int_equal 35 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("ON", &ret), 1); assert_int_equal 37 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yes", &ret), 1); assert_int_equal 39 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yES", &ret), 1); assert_int_equal 41 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("y", &ret), 1); assert_int_equal 43 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("Y", &ret), 1); assert_int_equal 45 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("1", &ret), 1); assert_int_equal 51 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("truedat", NULL), -1); assert_int_equal 52 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("onnn", NULL), -1); assert_int_equal 53 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("yep", NULL), -1); assert_int_equal 54 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("Y!", NULL), -1); assert_int_equal 55 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("100", NULL), -1); assert_int_equal 62 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("false", &ret), 1); assert_int_equal 64 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("fAlSe", &ret), 1); assert_int_equal 66 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("off", &ret), 1); assert_int_equal 68 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("OFF", &ret), 1); assert_int_equal 70 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("no", &ret), 1); assert_int_equal 72 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("No", &ret), 1); assert_int_equal 74 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("n", &ret), 1); assert_int_equal 76 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("N", &ret), 1); assert_int_equal 78 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("0", &ret), 1); assert_int_equal 84 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("falseee", NULL), -1); assert_int_equal 85 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("of", NULL), -1); assert_int_equal 86 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("nope", NULL), -1); assert_int_equal 87 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("N!", NULL), -1); assert_int_equal 88 lib/common/tests/strings/crm_str_to_boolean_test.c assert_int_equal(crm_str_to_boolean("000", NULL), -1); assert_int_equal 28 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp(list, "hello world"), 0); assert_int_equal 39 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp(list, "hello world"), 0); assert_int_equal 51 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp(list, "hello"), 0); assert_int_equal 64 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp(list, "hello world I am a unit test"), 0); assert_int_equal 77 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp(list, "hello,world,I am a unit test"), 0); assert_int_equal 90 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp(list, "hello, world, I am a unit test"), 0); assert_int_equal 23 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 24 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 32 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 33 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, 1234); assert_int_equal 34 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, 1234); assert_int_equal 42 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 43 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 44 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 52 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 53 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, 2000); assert_int_equal 54 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 62 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 63 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 64 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, 2020); assert_int_equal 72 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 73 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, 2000); assert_int_equal 74 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, 2020); assert_int_equal 82 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 83 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 84 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 86 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 87 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(start, PCMK__PARSE_INT_DEFAULT); assert_int_equal 88 lib/common/tests/strings/pcmk__parse_ll_range_test.c assert_int_equal(end, PCMK__PARSE_INT_DEFAULT); assert_int_equal 38 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(NULL, &result, NULL, NULL), EINVAL); assert_int_equal 41 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("", &result, NULL, NULL), EINVAL); assert_int_equal 45 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 48 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("", &result, "2.0", NULL), EINVAL); assert_int_equal 58 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("asdf", &result, NULL, NULL), EINVAL); assert_int_equal 61 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("as2.0", &result, NULL, NULL), EINVAL); assert_int_equal 65 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("asdf", &result, "2.0", NULL), EINVAL); assert_int_equal 68 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 77 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("2.0asdf", &result, NULL, NULL), pcmk_rc_ok); assert_int_equal 87 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 90 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 93 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(str, &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 116 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), EOVERFLOW); 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 137 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 142 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 23 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, s1, pcmk__str_none), 0); assert_int_equal 27 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(NULL, NULL, pcmk__str_none), 0); assert_int_equal 34 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, NULL, pcmk__str_null_matches), 0); assert_int_equal 36 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(NULL, s1, pcmk__str_null_matches), 0); assert_int_equal 57 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, s2, pcmk__str_casei), 0); assert_int_equal 66 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(NULL, "a..d", pcmk__str_regex), 1); assert_int_equal 67 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, NULL, pcmk__str_regex), 1); assert_int_equal 68 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s1, "a..d", pcmk__str_regex), 0); assert_int_equal 72 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 76 lib/common/tests/strings/pcmk__strcmp_test.c assert_int_equal(pcmk__strcmp(s2, "*ab", pcmk__str_regex), 1); assert_int_equal 41 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_int_equal(strcmp(s, "xyz"), 0); assert_int_equal 45 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_int_equal(strcmp(s, "xyz"), 0); assert_int_equal 26 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c assert_int_equal(pe_cron_range_satisfied(tm, xml), expected); assert_int_equal 34 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 41 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c assert_int_equal(pe_cron_range_satisfied(tm, NULL), pcmk_rc_ok);