Skip to content

Commit 18f7f1f

Browse files
committed
tests: net: lib: downloader: Don't enable POSIX APIs for the test
... because this causes conflicting types compilation errors in library files it uses. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent c3958e1 commit 18f7f1f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/subsys/net/lib/downloader/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ target_compile_options(app
3838
-DCONFIG_DOWNLOADER_MAX_FILENAME_SIZE=256
3939
-DCONFIG_DOWNLOADER_TRANSPORT_PARAMS_SIZE=256
4040
-DCONFIG_DOWNLOADER_STACK_SIZE=2048
41-
-DCONFIG_POSIX_API=y
4241
-DCONFIG_NET_IPV6=y
4342
-DCONFIG_NET_IPV4=y
4443
-DCONFIG_COAP_MAX_RETRANSMIT=2

tests/subsys/net/lib/downloader/src/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int zsock_getaddrinfo_server_ok(const char *host, const char *service,
291291
}
292292

293293
errno = ENOPROTOOPT;
294-
return EAI_SYSTEM;
294+
return DNS_EAI_SYSTEM;
295295
}
296296

297297
int zsock_getaddrinfo_server2_ok(const char *host, const char *service,
@@ -309,7 +309,7 @@ int zsock_getaddrinfo_server2_ok(const char *host, const char *service,
309309
}
310310

311311
errno = ENOPROTOOPT;
312-
return EAI_SYSTEM;
312+
return DNS_EAI_SYSTEM;
313313
}
314314

315315

@@ -320,7 +320,7 @@ int zsock_getaddrinfo_server_ipv6_fail_ipv4_ok(const char *host, const char *ser
320320
if (hints->ai_family == AF_INET6) {
321321
/* Fail on IPv6 to retry IPv4 */
322322
errno = ENOPROTOOPT;
323-
return EAI_SYSTEM;
323+
return DNS_EAI_SYSTEM;
324324
}
325325

326326
TEST_ASSERT_EQUAL_STRING(HOSTNAME, host);
@@ -335,7 +335,7 @@ int zsock_getaddrinfo_server_enetunreach(const char *host, const char *service,
335335
struct zsock_addrinfo **res)
336336
{
337337
errno = ENETUNREACH;
338-
return EAI_SYSTEM;
338+
return DNS_EAI_SYSTEM;
339339
}
340340

341341
void zsock_freeaddrinfo_server_ipv4(struct zsock_addrinfo *addr)

0 commit comments

Comments
 (0)