diff --git a/subsys/testsuite/ztest/src/ztest.c b/subsys/testsuite/ztest/src/ztest.c index 396cf65b638..dcf19d56dbd 100644 --- a/subsys/testsuite/ztest/src/ztest.c +++ b/subsys/testsuite/ztest/src/ztest.c @@ -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