Skip to content

Commit 1621aab

Browse files
committed
kernel/syscall: fix required INET may case no support
We may possible enable socket and no ipv4 Signed-off-by: buxiasen <buxiasen@xiaomi.com>
1 parent 6bd5934 commit 1621aab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/testsuites/kernel/syscall/cmocka_syscall_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ int main(int argc, char *argv[])
161161
test_nuttx_syscall_getpeername01,
162162
test_nuttx_syscall_test_group_setup,
163163
test_nuttx_syscall_test_group_teardown),
164+
# ifdef CONFIG_NET_IPv4
164165
cmocka_unit_test_setup_teardown(
165166
test_nuttx_syscall_getsockopt01,
166167
test_nuttx_syscall_test_group_setup,
@@ -175,6 +176,7 @@ int main(int argc, char *argv[])
175176
test_nuttx_syscall_setsockopt01,
176177
test_nuttx_syscall_test_group_setup,
177178
test_nuttx_syscall_test_group_teardown),
179+
# endif
178180
cmocka_unit_test_setup_teardown(
179181
test_nuttx_syscall_listen01,
180182
test_nuttx_syscall_test_group_setup,

0 commit comments

Comments
 (0)