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;