Fixed false negatives in check_getdns_list_get_data_type.h

This commit is contained in:
Craig E. Despeaux 2014-01-28 10:28:27 -05:00
parent 9b3a643def
commit cb0d92cdfc
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
index++; index++;
ASSERT_RC(getdns_list_get_data_type(list, index, &answer), ASSERT_RC(getdns_list_get_data_type(list, index, &answer),
GETDNS_RETURN_INVALID_PARAMETER, "Return code from getdns_list_get_data_type()"); GETDNS_RETURN_NO_SUCH_LIST_ITEM, "Return code from getdns_list_get_data_type()");
LIST_DESTROY(list); LIST_DESTROY(list);
} }
@ -84,7 +84,7 @@
LIST_CREATE(list); LIST_CREATE(list);
ASSERT_RC(getdns_list_get_data_type(list, index, &answer), ASSERT_RC(getdns_list_get_data_type(list, index, &answer),
GETDNS_RETURN_INVALID_PARAMETER, "Return code from getdns_list_get_data_type()"); GETDNS_RETURN_NO_SUCH_LIST_ITEM, "Return code from getdns_list_get_data_type()");
LIST_DESTROY(list); LIST_DESTROY(list);
} }
@ -218,11 +218,11 @@
tcase_add_test(tc_neg, getdns_list_get_data_type_1); tcase_add_test(tc_neg, getdns_list_get_data_type_1);
tcase_add_test(tc_neg, getdns_list_get_data_type_2); tcase_add_test(tc_neg, getdns_list_get_data_type_2);
tcase_add_test(tc_neg, getdns_list_get_data_type_3); tcase_add_test(tc_neg, getdns_list_get_data_type_3);
tcase_add_test(tc_neg, getdns_list_get_data_type_4);
suite_add_tcase(s, tc_neg); suite_add_tcase(s, tc_neg);
/* Positive test cases */ /* Positive test cases */
TCase *tc_pos = tcase_create("Positive"); TCase *tc_pos = tcase_create("Positive");
tcase_add_test(tc_pos, getdns_list_get_data_type_4);
tcase_add_test(tc_pos, getdns_list_get_data_type_5); tcase_add_test(tc_pos, getdns_list_get_data_type_5);
tcase_add_test(tc_pos, getdns_list_get_data_type_6); tcase_add_test(tc_pos, getdns_list_get_data_type_6);
tcase_add_test(tc_pos, getdns_list_get_data_type_7); tcase_add_test(tc_pos, getdns_list_get_data_type_7);