Skip to content
Permalink
Browse files

tests: drivers: Fix coverity issue 198873

Fix coverity issue 198873

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
  • Loading branch information...
Mierunski authored and ioannisg committed Jul 29, 2019
1 parent f2bf9a1 commit 4d658ca4405917717465dad9f7c78984c9e07532
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/drivers/uart/uart_async_api/src/test_uart_async.c
@@ -132,7 +132,9 @@ void test_chained_read(void)
uart_tx(uart_dev, tx_buf, sizeof(tx_buf), 100);
zassert_equal(k_sem_take(&tx_done, 100), 0, "TX_DONE timeout");
zassert_equal(k_sem_take(&rx_rdy, 1000), 0, "RX_RDY timeout");
zassert_equal(read_len, sizeof(tx_buf),
size_t read_len_temp = read_len;

zassert_equal(read_len_temp, sizeof(tx_buf),
"Incorrect read length");
zassert_equal(memcmp(tx_buf, read_ptr, sizeof(tx_buf)),
0,

0 comments on commit 4d658ca

Please sign in to comment.
You can’t perform that action at this time.