1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/bitalgorithm_timings: fix compilation with NDEBUG

This commit is contained in:
Gunar Schorcht 2021-12-10 10:49:10 +01:00
parent 11a99889da
commit cfb2ef7de2

View File

@ -28,13 +28,13 @@
* @} * @}
*/ */
#include <assert.h>
#include <stdint.h> #include <stdint.h>
#include <stdatomic.h> #include <stdatomic.h>
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#include "bitarithm.h" #include "bitarithm.h"
#include "test_utils/expect.h"
#include "xtimer.h" #include "xtimer.h"
#define TIMEOUT_S (5ul) #define TIMEOUT_S (5ul)
@ -116,8 +116,8 @@ static void run_test_test_and_clear(void)
xtimer_set(&xtimer, TIMEOUT); xtimer_set(&xtimer, TIMEOUT);
do { do {
assert(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_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_1) == TEST_AND_CLEAR_TEST_MASK_1);
++count; ++count;
} while (atomic_load(&done) == false); } while (atomic_load(&done) == false);