Fix failing tests

This commit is contained in:
Craig E. Despeaux 2014-02-20 11:53:57 -05:00
parent c2a1e83679
commit 097e6936cb
4 changed files with 4 additions and 4 deletions

View File

@ -195,7 +195,7 @@ void assert_nxdomain(struct extracted_response *ex_response)
{
uint32_t rcode;
ASSERT_RC(ex_response->status, GETDNS_RESPSTATUS_GOOD, "Unexpected value for \"status\"");
ASSERT_RC(ex_response->status, GETDNS_RESPSTATUS_NO_NAME, "Unexpected value for \"status\"");
ASSERT_RC(getdns_dict_get_int(ex_response->header, "rcode", &rcode), GETDNS_RETURN_GOOD, "Failed to extract \"rcode\"");
ck_assert_msg(rcode == 3, "Expected rcode == 0, got %d", rcode);
}

View File

@ -70,7 +70,7 @@
GETDNS_RETURN_GOOD, "Return code from getdns_context_set_timeout()");
ASSERT_RC(getdns_context_set_context_update_callback(context, NULL),
GETDNS_RETURN_INVALID_PARAMETER, "Return code from getdns_context_set_context_update_callback()");
GETDNS_RETURN_GOOD, "Return code from getdns_context_set_context_update_callback()");
CONTEXT_DESTROY;

View File

@ -65,7 +65,7 @@
CONTEXT_CREATE(TRUE);
ASSERT_RC(getdns_context_set_upstream_recursive_servers(context, NULL),
GETDNS_RETURN_CONTEXT_UPDATE_FAIL, "Return code from getdns_context_set_upstream_recursive_servers()");
GETDNS_RETURN_INVALID_PARAMETER, "Return code from getdns_context_set_upstream_recursive_servers()");
CONTEXT_DESTROY;

View File

@ -45,7 +45,7 @@
struct getdns_dict *response = NULL;
ASSERT_RC(getdns_service_sync(context, "google.com", NULL, &response),
GETDNS_RETURN_BAD_CONTEXT, "Return code from getdns_service_sync()");
GETDNS_RETURN_INVALID_PARAMETER, "Return code from getdns_service_sync()");
}
END_TEST