diff options
| author | Zhu Jun <zhujun2@cmss.chinamobile.com> | 2023-11-21 00:08:02 -0800 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2023-12-04 15:12:57 +0100 |
| commit | 4d98618b8a657f1ce361d90e0eade759af912b98 (patch) | |
| tree | 67af9d404b764017f88e5d704e7b0ddc138cd4fb /tests/qtest/test-filter-mirror.c | |
| parent | 55339361276a81ab3d306e6e8e81151e2977c5da (diff) | |
| download | focaccia-qemu-4d98618b8a657f1ce361d90e0eade759af912b98.tar.gz focaccia-qemu-4d98618b8a657f1ce361d90e0eade759af912b98.zip | |
tests/qtest: check the return value
These variables "ret" are never referenced in the code, thus add check logic for the "ret" Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20231121080802.4500-1-zhujun2@cmss.chinamobile.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/test-filter-mirror.c')
| -rw-r--r-- | tests/qtest/test-filter-mirror.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qtest/test-filter-mirror.c b/tests/qtest/test-filter-mirror.c index adeada3eb8..f3865f7519 100644 --- a/tests/qtest/test-filter-mirror.c +++ b/tests/qtest/test-filter-mirror.c @@ -61,6 +61,7 @@ static void test_mirror(void) g_assert_cmpint(len, ==, sizeof(send_buf)); recv_buf = g_malloc(len); ret = recv(recv_sock[0], recv_buf, len, 0); + g_assert_cmpint(ret, ==, len); g_assert_cmpstr(recv_buf, ==, send_buf); g_free(recv_buf); |