Skip to content
Snippets Groups Projects
Commit 26160049 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Merge branch 'libknot' of git+ssh://git.nic.cz/projects/labs/cutedns into libknot

parents 46537ac5 1c6371f3
No related merge requests found
...@@ -285,6 +285,7 @@ dnslib_packet_t *packet_from_test_response(test_response_t *test_packet) ...@@ -285,6 +285,7 @@ dnslib_packet_t *packet_from_test_response(test_response_t *test_packet)
static int test_packet_parse_from_wire(list raw_response_list) static int test_packet_parse_from_wire(list raw_response_list)
{ {
#ifdef TEST_WITH_LDNS
int errors = 0; int errors = 0;
node *n = NULL; node *n = NULL;
...@@ -328,10 +329,16 @@ static int test_packet_parse_from_wire(list raw_response_list) ...@@ -328,10 +329,16 @@ static int test_packet_parse_from_wire(list raw_response_list)
} }
return (errors == 0); return (errors == 0);
#endif
#ifndef TEST_WITH_LDNS
diag("Enable ldns to test this feature");
return 0;
#endif
} }
static int test_packet_to_wire(list raw_response_list) static int test_packet_to_wire(list raw_response_list)
{ {
#ifdef TEST_WITH_LDNS
int errors = 0; int errors = 0;
/*!< \todo test queries too! */ /*!< \todo test queries too! */
// /* We'll need data from both lists. */ // /* We'll need data from both lists. */
...@@ -410,6 +417,11 @@ static int test_packet_to_wire(list raw_response_list) ...@@ -410,6 +417,11 @@ static int test_packet_to_wire(list raw_response_list)
} }
return (errors == 0); return (errors == 0);
#endif
#ifndef TEST_WITH_LDNS
diag("Enable ldns to test this feature!");
return 0;
#endif
} }
static const uint DNSLIB_PACKET_TEST_COUNT = 2; static const uint DNSLIB_PACKET_TEST_COUNT = 2;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment