1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

tests/usbus: fix NDEBUG compile problem

This commit is contained in:
Gunar Schorcht 2020-02-25 09:29:01 +01:00
parent a7e0071c45
commit fd5fb46336

View File

@ -19,6 +19,7 @@
#include "embUnit.h"
#include "periph/usbdev.h"
#include "test_utils/expect.h"
#include "usbdev_mock.h"
#define ENABLE_DEBUG (0)
@ -121,7 +122,7 @@ int _set(usbdev_t *usbdev, usbopt_t opt,
res = sizeof(uint8_t);
break;
case USBOPT_ATTACH:
assert(value_len == sizeof(usbopt_enable_t));
expect(value_len == sizeof(usbopt_enable_t));
res = sizeof(usbopt_enable_t);
break;
default: