Skip to content

Commit 95a5f90

Browse files
ydamigosnashif
authored andcommitted
tests: can: api: Fix "Device not not found" error message
Fix "Device not not found" error message. Signed-off-by: Yannis Damigos <[email protected]>
1 parent 4f99a38 commit 95a5f90

File tree

1 file changed

+6
-6
lines changed
  • tests/drivers/can/api/src

1 file changed

+6
-6
lines changed

tests/drivers/can/api/src/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static void send_receive(const struct zcan_filter *filter, struct zcan_frame *ms
239239
u32_t mask = 0U;
240240

241241
can_dev = device_get_binding(DT_CAN_1_NAME);
242-
zassert_not_null(can_dev, "Device not not found");
242+
zassert_not_null(can_dev, "Device not found");
243243

244244
filter_id = attach_msgq(can_dev, filter);
245245

@@ -282,7 +282,7 @@ static void test_set_loopback(void)
282282
int ret;
283283

284284
can_dev = device_get_binding(DT_CAN_1_NAME);
285-
zassert_not_null(can_dev, "Device not not found");
285+
zassert_not_null(can_dev, "Device not found");
286286

287287
ret = can_configure(can_dev, CAN_LOOPBACK_MODE, 0);
288288
zassert_equal(ret, 0, "Can't set loopback-mode. Err: %d", ret);
@@ -297,7 +297,7 @@ static void test_send_and_forget(void)
297297
struct device *can_dev;
298298

299299
can_dev = device_get_binding(DT_CAN_1_NAME);
300-
zassert_not_null(can_dev, "Device not not found");
300+
zassert_not_null(can_dev, "Device not found");
301301

302302
send_test_msg(can_dev, &test_std_msg);
303303
}
@@ -312,7 +312,7 @@ static void test_filter_attach(void)
312312
int filter_id;
313313

314314
can_dev = device_get_binding(DT_CAN_1_NAME);
315-
zassert_not_null(can_dev, "Device not not found");
315+
zassert_not_null(can_dev, "Device not found");
316316

317317
filter_id = attach_isr(can_dev, &test_std_filter);
318318
can_detach(can_dev, filter_id);
@@ -349,7 +349,7 @@ static void test_receive_timeout(void)
349349
struct zcan_frame msg;
350350

351351
can_dev = device_get_binding(DT_CAN_1_NAME);
352-
zassert_not_null(can_dev, "Device not not found");
352+
zassert_not_null(can_dev, "Device not found");
353353

354354
filter_id = attach_msgq(can_dev, &test_std_filter);
355355

@@ -415,7 +415,7 @@ static void test_send_receive_wrong_id(void)
415415
struct zcan_frame msg_buffer;
416416

417417
can_dev = device_get_binding(DT_CAN_1_NAME);
418-
zassert_not_null(can_dev, "Device not not found");
418+
zassert_not_null(can_dev, "Device not found");
419419

420420
filter_id = attach_msgq(can_dev, &test_std_filter);
421421

0 commit comments

Comments
 (0)