@@ -29,8 +29,8 @@ using namespace utest::v1;
29
29
30
30
// Hostname for testing against
31
31
// Must have A and AAAA records
32
- #ifndef MBED_DNS_TEST_HOST
33
- #define MBED_DNS_TEST_HOST " connector.mbed.com"
32
+ #ifndef MBED_CONF_APP_DNS_TEST_HOST
33
+ #define MBED_CONF_APP_DNS_TEST_HOST " connector.mbed.com"
34
34
#endif
35
35
36
36
@@ -59,9 +59,9 @@ void net_bringup() {
59
59
// DNS tests
60
60
void test_dns_query () {
61
61
SocketAddress addr;
62
- int err = net->gethostbyname (MBED_DNS_TEST_HOST , &addr);
62
+ int err = net->gethostbyname (MBED_CONF_APP_DNS_TEST_HOST , &addr);
63
63
printf (" DNS: query \" %s\" => \" %s\"\n " ,
64
- MBED_DNS_TEST_HOST , addr.get_ip_address ());
64
+ MBED_CONF_APP_DNS_TEST_HOST , addr.get_ip_address ());
65
65
66
66
TEST_ASSERT_EQUAL (0 , err);
67
67
TEST_ASSERT ((bool )addr);
@@ -70,9 +70,9 @@ void test_dns_query() {
70
70
71
71
void test_dns_query_pref () {
72
72
SocketAddress addr;
73
- int err = net->gethostbyname (MBED_DNS_TEST_HOST , &addr, ip_pref);
73
+ int err = net->gethostbyname (MBED_CONF_APP_DNS_TEST_HOST , &addr, ip_pref);
74
74
printf (" DNS: query %s \" %s\" => \" %s\"\n " ,
75
- ip_pref_repr, MBED_DNS_TEST_HOST , addr.get_ip_address ());
75
+ ip_pref_repr, MBED_CONF_APP_DNS_TEST_HOST , addr.get_ip_address ());
76
76
77
77
TEST_ASSERT_EQUAL (0 , err);
78
78
TEST_ASSERT ((bool )addr);
0 commit comments