From 39e2c8a33e00bdf18cb20f42f0515d9433de9422 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Fri, 13 Dec 2019 11:34:14 +0100 Subject: [PATCH] replace '//' with #ifdef 0 / #endif because my compiler complains about it for some reason --- src/test/check_getdns_general.h | 68 +++++++++++++++++---------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/test/check_getdns_general.h b/src/test/check_getdns_general.h index 2c094df8..8464b1b4 100644 --- a/src/test/check_getdns_general.h +++ b/src/test/check_getdns_general.h @@ -140,39 +140,41 @@ } END_TEST - // START_TEST (getdns_general_6) - // { - // /* - // * name = "google.com" - // * request_type = 0 (minimum valid RRTYPE) - // * expect: NOERROR/NODATA response: - // * status = GETDNS_RESPSTATUS_NO_NAME - // * 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 }; - // struct getdns_context *context = NULL; \ - // void* eventloop = NULL; \ - // getdns_transaction_t transaction_id = 0; - // - // CONTEXT_CREATE(TRUE); - // EVENT_BASE_CREATE; - // - // ASSERT_RC(getdns_general(context, "google.com", 0, NULL, - // &fn_ref, &transaction_id, callbackfn), - // GETDNS_RETURN_GOOD, "Return code from getdns_general()"); - // - // RUN_EVENT_LOOP; - // CONTEXT_DESTROY; - // } - // END_TEST - // - // void verify_getdns_general_6(struct extracted_response *ex_response) - // { - // assert_noerror(ex_response); - // assert_nodata(ex_response); - // } +#if 0 + START_TEST (getdns_general_6) + { + /* + * name = "google.com" + * request_type = 0 (minimum valid RRTYPE) + * expect: NOERROR/NODATA response: + * status = GETDNS_RESPSTATUS_NO_NAME + * 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 }; + struct getdns_context *context = NULL; \ + void* eventloop = NULL; \ + getdns_transaction_t transaction_id = 0; + + CONTEXT_CREATE(TRUE); + EVENT_BASE_CREATE; + + ASSERT_RC(getdns_general(context, "google.com", 0, NULL, + &fn_ref, &transaction_id, callbackfn), + GETDNS_RETURN_GOOD, "Return code from getdns_general()"); + + RUN_EVENT_LOOP; + CONTEXT_DESTROY; + } + END_TEST + + void verify_getdns_general_6(struct extracted_response *ex_response) + { + assert_noerror(ex_response); + assert_nodata(ex_response); + } +#endif START_TEST (getdns_general_7) {