From a7e0071c459fd2743d7bf66d621c9df7a63084eb Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 25 Feb 2020 09:28:59 +0100 Subject: [PATCH] tests/thread_msg_block_race: fix NDEBUG compile problem --- tests/thread_msg_block_race/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/thread_msg_block_race/main.c b/tests/thread_msg_block_race/main.c index 39ff14de3d..2211159aaa 100644 --- a/tests/thread_msg_block_race/main.c +++ b/tests/thread_msg_block_race/main.c @@ -24,6 +24,7 @@ #include "periph/timer.h" #include "random.h" +#include "test_utils/expect.h" #include "thread.h" #include "msg.h" @@ -95,7 +96,7 @@ int main(void) pid = thread_create(_stack, sizeof(_stack), THREAD_PRIORITY_MAIN + 1, THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST, _thread, NULL, "nr2"); - assert(pid != KERNEL_PID_UNDEF); + expect(pid != KERNEL_PID_UNDEF); while (1) { msg_t msg = { .type = CANARY_TYPE };