From 3fd3793c768e0a2dfbaaa559086a6eccc27fb012 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Thu, 27 Jan 2022 12:53:07 +0100 Subject: [PATCH] testsuite: tc_util: Limit include range tc_util.h is also included by unit tests and in that case it cannot have dependencies to subsystems. Including log_ctrl.h only for ARCH_POSIX where it is needed to flush logs before exit. Signed-off-by: Krzysztof Chruscinski --- subsys/testsuite/include/tc_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/testsuite/include/tc_util.h b/subsys/testsuite/include/tc_util.h index beb0425b1b3..56896dc4d9f 100644 --- a/subsys/testsuite/include/tc_util.h +++ b/subsys/testsuite/include/tc_util.h @@ -16,7 +16,6 @@ #include #endif #include -#include #if defined CONFIG_ZTEST_TC_UTIL_USER_OVERRIDE #include @@ -175,6 +174,7 @@ static inline void test_time_ms(void) #endif #if defined(CONFIG_ARCH_POSIX) +#include #define TC_END_POST(result) do { \ LOG_PANIC(); \ posix_exit(result); \