1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +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 <stdatomic.h>
#include <stdio.h>
#include <limits.h>
#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);