replace '//' with #ifdef 0 / #endif

because my compiler complains about it for some reason
This commit is contained in:
Willem Toorop 2019-12-13 11:34:14 +01:00
parent 17784bd3f5
commit 39e2c8a33e
1 changed files with 35 additions and 33 deletions

View File

@ -140,39 +140,41 @@
} }
END_TEST END_TEST
// START_TEST (getdns_general_6) #if 0
// { START_TEST (getdns_general_6)
// /* {
// * name = "google.com" /*
// * request_type = 0 (minimum valid RRTYPE) * name = "google.com"
// * expect: NOERROR/NODATA response: * request_type = 0 (minimum valid RRTYPE)
// * status = GETDNS_RESPSTATUS_NO_NAME * expect: NOERROR/NODATA response:
// * rcode = 0 * status = GETDNS_RESPSTATUS_NO_NAME
// * ancount = 0 (number of records in ANSWER section) * rcode = 0
// */ * ancount = 0 (number of records in ANSWER section)
// void verify_getdns_general_6(struct extracted_response *ex_response); */
// fn_cont fn_ref = { verify_getdns_general_6 }; void verify_getdns_general_6(struct extracted_response *ex_response);
// struct getdns_context *context = NULL; \ fn_cont fn_ref = { verify_getdns_general_6 };
// void* eventloop = NULL; \ struct getdns_context *context = NULL; \
// getdns_transaction_t transaction_id = 0; void* eventloop = NULL; \
// getdns_transaction_t transaction_id = 0;
// CONTEXT_CREATE(TRUE);
// EVENT_BASE_CREATE; CONTEXT_CREATE(TRUE);
// EVENT_BASE_CREATE;
// ASSERT_RC(getdns_general(context, "google.com", 0, NULL,
// &fn_ref, &transaction_id, callbackfn), ASSERT_RC(getdns_general(context, "google.com", 0, NULL,
// GETDNS_RETURN_GOOD, "Return code from getdns_general()"); &fn_ref, &transaction_id, callbackfn),
// GETDNS_RETURN_GOOD, "Return code from getdns_general()");
// RUN_EVENT_LOOP;
// CONTEXT_DESTROY; RUN_EVENT_LOOP;
// } CONTEXT_DESTROY;
// END_TEST }
// END_TEST
// void verify_getdns_general_6(struct extracted_response *ex_response)
// { void verify_getdns_general_6(struct extracted_response *ex_response)
// assert_noerror(ex_response); {
// assert_nodata(ex_response); assert_noerror(ex_response);
// } assert_nodata(ex_response);
}
#endif
START_TEST (getdns_general_7) START_TEST (getdns_general_7)
{ {