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:
parent
fd5ecef59e
commit
a421f339d5
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue