From fbf1c19bd648ddc3897adb49cca7bb8f000bc68c Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Tue, 28 Nov 2023 13:25:12 +0100 Subject: [PATCH] tests/kernel/common: Enable errno test on native_sim Enable this test also on native_sim when not using the host C library Signed-off-by: Alberto Escolar Piedras --- tests/kernel/common/src/errno.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/kernel/common/src/errno.c b/tests/kernel/common/src/errno.c index 72240a40d92..9155a5bd418 100644 --- a/tests/kernel/common/src/errno.c +++ b/tests/kernel/common/src/errno.c @@ -118,9 +118,8 @@ ZTEST(common_errno, test_thread_context) void thread_entry_user(void *p1, void *p2, void *p3) { -#ifdef CONFIG_ARCH_POSIX - /* The errno in native posix will be handled by native - * operation system, so we skip it. +#ifdef CONFIG_NATIVE_LIBC + /* The errno when using the host C library will be handled by it, so we skip it. */ ztest_test_skip(); #else