diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-05-25 14:44:54 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-06-03 16:43:27 +0100 |
commit | 380822edb3252962001a47c02facb7c7e977dc7d (patch) | |
tree | 5bfcebd1bc927ea5ea54656209c0ec0402a3e7ad /dump | |
parent | 3c65e439b2724cc70af31a87447a0c7292babac5 (diff) |
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
Diffstat (limited to 'dump')
0 files changed, 0 insertions, 0 deletions