From cfb2ef7de2c7e8005071aa87f8af550e6c7b3ef3 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Fri, 10 Dec 2021 10:49:10 +0100 Subject: [PATCH] tests/bitalgorithm_timings: fix compilation with NDEBUG --- tests/bitarithm_timings/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bitarithm_timings/main.c b/tests/bitarithm_timings/main.c index 00b6c76993..c5cf4a7b10 100644 --- a/tests/bitarithm_timings/main.c +++ b/tests/bitarithm_timings/main.c @@ -28,13 +28,13 @@ * @} */ -#include #include #include #include #include #include "bitarithm.h" +#include "test_utils/expect.h" #include "xtimer.h" #define TIMEOUT_S (5ul) @@ -116,8 +116,8 @@ static void run_test_test_and_clear(void) xtimer_set(&xtimer, TIMEOUT); do { - assert(do_test_and_clear(TEST_AND_CLEAR_TEST_MASK_0) == TEST_AND_CLEAR_TEST_MASK_0); - assert(do_test_and_clear(TEST_AND_CLEAR_TEST_MASK_1) == TEST_AND_CLEAR_TEST_MASK_1); + expect(do_test_and_clear(TEST_AND_CLEAR_TEST_MASK_0) == TEST_AND_CLEAR_TEST_MASK_0); + expect(do_test_and_clear(TEST_AND_CLEAR_TEST_MASK_1) == TEST_AND_CLEAR_TEST_MASK_1); ++count; } while (atomic_load(&done) == false);