Skip to content

Commit

Permalink
Ztest: Including the missing C standard library header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fsammoura1980 committed Oct 2, 2024
1 parent d11997d commit 8cc8904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/testsuite/ztest/src/ztest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <stdlib.h>
#include <zephyr/ztest.h>

#include <zephyr/app_memory/app_memdomain.h>
Expand All @@ -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
Expand Down

0 comments on commit 8cc8904

Please sign in to comment.