Ztest: Including the missing C standard library header

The ztest.c calls atoi, which is provided by the C standard library.
Remove the conditional inclusion of the C standard library with the
definition of CONFIG_ZTEST_SHUFFLE.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
This commit is contained in:
Firas Sammoura 2024-09-27 17:58:53 +00:00 committed by Anas Nashif
parent 5a195001e3
commit 6f072ba774

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <stdlib.h>
#include <zephyr/ztest.h> #include <zephyr/ztest.h>
#include <zephyr/app_memory/app_memdomain.h> #include <zephyr/app_memory/app_memdomain.h>
@ -27,7 +28,6 @@ static bool failed_expectation;
#endif #endif
#ifdef CONFIG_ZTEST_SHUFFLE #ifdef CONFIG_ZTEST_SHUFFLE
#include <stdlib.h>
#include <time.h> #include <time.h>
#include <zephyr/random/random.h> #include <zephyr/random/random.h>
#ifndef CONFIG_ZTEST_REPEAT #ifndef CONFIG_ZTEST_REPEAT