Skip to content

Commit 9914838

Browse files
committed
tests: posix: net: open native_sim in c++,posix,net,native case
Prior to the fixes in the previous commits, combining a build for native_sim with CONFIG_CPP=y CONFIG_POSIX_API=y CONFIG_STD_CPP20=y CONFIG_REQUIRES_FULL_LIBCPP=y would fail. It succeeds now. This change adds a testcase to monitor that scenario in CI. Note: this was partially necessary because the deprecation of CONFIG_NET_SOCKETS_POSIX_NAMES is not yet complete, so there is a dependency cycle, and also because <sys/types.h> was pulling in the host <sys/types.h> instead of Zephyr's or one of the embedded OSes we support. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
1 parent d837725 commit 9914838

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

tests/posix/net/testcase.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
common:
22
depends_on: netif
3-
# native_sim uses if_*() from the native libc
4-
filter: not CONFIG_NATIVE_LIBC
5-
integration_platforms:
6-
- qemu_x86
73
min_ram: 16
8-
platform_allow:
9-
- qemu_x86
104
tags:
115
- iface
126
- net
137
- posix
148
tests:
15-
portability.posix.net: {}
9+
portability.posix.net:
10+
# native_sim links to if_*() from the host libc which causes the test to crash immediately.
11+
filter: not CONFIG_NATIVE_LIBC
12+
portability.posix.net.cpp.native_sim:
13+
# demonstrate that #75319 fixes the build error in #75849
14+
tags:
15+
- cpp
16+
build_only: true
17+
platform_allow:
18+
- native_sim
19+
extra_configs:
20+
- CONFIG_CPP=y
21+
- CONFIG_STD_CPP20=y
22+
- CONFIG_REQUIRES_FULL_LIBCPP=y

0 commit comments

Comments
 (0)