]> xenbits.xensource.com Git - qemu-xen.git/commit
tests/qtest/e1000e-test: Check qemu_recv() succeeded
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 25 May 2021 13:44:54 +0000 (14:44 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:27 +0000 (16:43 +0100)
commit380822edb3252962001a47c02facb7c7e977dc7d
tree5bfcebd1bc927ea5ea54656209c0ec0402a3e7ad
parent3c65e439b2724cc70af31a87447a0c7292babac5
tests/qtest/e1000e-test: Check qemu_recv() succeeded

The e1000e_send_verify() test calls qemu_recv() but doesn't
check that the call succeeded, which annoys Coverity. Add
an explicit test check for the length of the data.

(This is a test check, not a "we assume this syscall always
succeeds", so we use g_assert_cmpint() rather than g_assert().)

Fixes: Coverity CID 1432324
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-id: 20210525134458.6675-3-peter.maydell@linaro.org
tests/qtest/e1000e-test.c