tests/thread_msg_block_race: fix NDEBUG compile problem

This commit is contained in:
Gunar Schorcht 2020-02-25 09:28:59 +01:00
parent 85ce49680b
commit a7e0071c45

View File

@ -24,6 +24,7 @@
#include "periph/timer.h" #include "periph/timer.h"
#include "random.h" #include "random.h"
#include "test_utils/expect.h"
#include "thread.h" #include "thread.h"
#include "msg.h" #include "msg.h"
@ -95,7 +96,7 @@ int main(void)
pid = thread_create(_stack, sizeof(_stack), THREAD_PRIORITY_MAIN + 1, pid = thread_create(_stack, sizeof(_stack), THREAD_PRIORITY_MAIN + 1,
THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST, THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST,
_thread, NULL, "nr2"); _thread, NULL, "nr2");
assert(pid != KERNEL_PID_UNDEF); expect(pid != KERNEL_PID_UNDEF);
while (1) { while (1) {
msg_t msg = { .type = CANARY_TYPE }; msg_t msg = { .type = CANARY_TYPE };