From ff4641ec368fd14bab1e6aae45cd0577d1ad3c3f Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Fri, 26 Jun 2020 09:44:46 +0200 Subject: [PATCH] tests/candev: fix compilation with NDEBUG --- tests/candev/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/candev/main.c b/tests/candev/main.c index 42e796be00..70badc376d 100644 --- a/tests/candev/main.c +++ b/tests/candev/main.c @@ -29,6 +29,7 @@ #include #include #include "shell.h" +#include "test_utils/expect.h" #include "can/device.h" #if IS_USED(MODULE_PERIPH_CAN) @@ -220,7 +221,7 @@ int main(void) /* add initialization for other candev drivers here */ #endif - assert(candev); + expect(candev); candev->event_callback = _can_event_callback; candev->isr_arg = NULL;