Ztest: Ztest_param fix

Add the missing #ifndef CONFIG_ZTEST_SHUFFLE in ztest.c file.
This fixes multiple definitions of NUM_ITER_PER_SUITE
and NUM_ITER_PER_TEST.

Signed-off-by: Arkadiusz Cholewinski <arkadiuszx.cholewinski@intel.com>
This commit is contained in:
Arkadiusz Cholewinski 2024-09-19 09:26:07 +02:00 committed by Anas Nashif
parent fd5ecef59e
commit a421f339d5
1 changed files with 2 additions and 0 deletions

View File

@ -40,9 +40,11 @@ static bool failed_expectation;
#define NUM_ITER_PER_SUITE CONFIG_ZTEST_SUITE_REPEAT_COUNT
#define NUM_ITER_PER_TEST CONFIG_ZTEST_TEST_REPEAT_COUNT
#else
#ifndef CONFIG_ZTEST_SHUFFLE
#define NUM_ITER_PER_SUITE 1
#define NUM_ITER_PER_TEST 1
#endif
#endif
#ifdef CONFIG_ZTEST_COVERAGE_RESET_BEFORE_TESTS
#include <coverage.h>