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
1 changed files with 1 additions and 1 deletions

View File

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