mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-13 14:22:19 +08:00
Improve a test assertion
That way if it ever fails it will print the values. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
f4a67cf892
commit
47d0b796af
@ -5068,7 +5068,7 @@ void inject_client_content_on_the_wire(int pk_alg,
|
|||||||
|
|
||||||
/* Send the crafted message */
|
/* Send the crafted message */
|
||||||
ret = mbedtls_test_mock_tcp_send_b(&client.socket, data->x, data->len);
|
ret = mbedtls_test_mock_tcp_send_b(&client.socket, data->x, data->len);
|
||||||
TEST_ASSERT(ret >= 0 && (size_t) ret == data->len);
|
TEST_EQUAL(ret, (int) data->len);
|
||||||
|
|
||||||
/* Have the server process it.
|
/* Have the server process it.
|
||||||
* Need the loop because a server that support 1.3 and 1.2
|
* Need the loop because a server that support 1.3 and 1.2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user