diff --git a/test/test.c b/test/test.c index 9574a0f0e..ed9b04b91 100644 --- a/test/test.c +++ b/test/test.c @@ -237,11 +237,11 @@ msg_t TestThread(void *p) { global_fail = FALSE; i = 0; while (patterns[i]) { + j = 0; + while (patterns[i][j]) { #if DELAY_BETWEEN_TESTS > 0 chThdSleepMilliseconds(DELAY_BETWEEN_TESTS); #endif - j = 0; - while (patterns[i][j]) { test_println("---------------------------------------------------------------------------"); test_print("--- Test Case "); test_printn(i + 1); diff --git a/test/testbmk.c b/test/testbmk.c index f6dc58f20..c3a69a5b2 100644 --- a/test/testbmk.c +++ b/test/testbmk.c @@ -332,7 +332,7 @@ const struct testcase testbmk8 = { * Test sequence for benchmarks pattern. */ const struct testcase *patternbmk[] = { -#if TEST_NO_BENCHMARKS +#if !TEST_NO_BENCHMARKS &testbmk1, &testbmk2, &testbmk3,