Skip to content

Commit

Permalink
tests: can: api: Fix "Device not not found" error message
Browse files Browse the repository at this point in the history
Fix "Device not not found" error message.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
  • Loading branch information
ydamigos authored and nashif committed Apr 18, 2019
1 parent 4f99a38 commit 95a5f90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/drivers/can/api/src/main.c
Expand Up @@ -239,7 +239,7 @@ static void send_receive(const struct zcan_filter *filter, struct zcan_frame *ms
u32_t mask = 0U;

can_dev = device_get_binding(DT_CAN_1_NAME);
zassert_not_null(can_dev, "Device not not found");
zassert_not_null(can_dev, "Device not found");

filter_id = attach_msgq(can_dev, filter);

Expand Down Expand Up @@ -282,7 +282,7 @@ static void test_set_loopback(void)
int ret;

can_dev = device_get_binding(DT_CAN_1_NAME);
zassert_not_null(can_dev, "Device not not found");
zassert_not_null(can_dev, "Device not found");

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

can_dev = device_get_binding(DT_CAN_1_NAME);
zassert_not_null(can_dev, "Device not not found");
zassert_not_null(can_dev, "Device not found");

send_test_msg(can_dev, &test_std_msg);
}
Expand All @@ -312,7 +312,7 @@ static void test_filter_attach(void)
int filter_id;

can_dev = device_get_binding(DT_CAN_1_NAME);
zassert_not_null(can_dev, "Device not not found");
zassert_not_null(can_dev, "Device not found");

filter_id = attach_isr(can_dev, &test_std_filter);
can_detach(can_dev, filter_id);
Expand Down Expand Up @@ -349,7 +349,7 @@ static void test_receive_timeout(void)
struct zcan_frame msg;

can_dev = device_get_binding(DT_CAN_1_NAME);
zassert_not_null(can_dev, "Device not not found");
zassert_not_null(can_dev, "Device not found");

filter_id = attach_msgq(can_dev, &test_std_filter);

Expand Down Expand Up @@ -415,7 +415,7 @@ static void test_send_receive_wrong_id(void)
struct zcan_frame msg_buffer;

can_dev = device_get_binding(DT_CAN_1_NAME);
zassert_not_null(can_dev, "Device not not found");
zassert_not_null(can_dev, "Device not found");

filter_id = attach_msgq(can_dev, &test_std_filter);

Expand Down

0 comments on commit 95a5f90

Please sign in to comment.