diff --git a/testing/ostest/ostest_main.c b/testing/ostest/ostest_main.c index 6bf75d86f..4e2ca3484 100644 --- a/testing/ostest/ostest_main.c +++ b/testing/ostest/ostest_main.c @@ -381,7 +381,7 @@ static int user_main(int argc, char *argv[]) check_test_memory_usage(); #endif -#if !defined(CONFIG_DISABLE_PTHREAD) && defined(__KERNEL__) && \ +#if !defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_BUILD_FLAT) && \ defined(CONFIG_SCHED_WORKQUEUE) /* Check work queues */