Skip to content

tests: Fix some minor Coverity issues

Peter Maydell qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tests/qtest/bios-tables-test: Check for dup2() failuretests/qtest/bios-tables-test.c+6 -21 reply
2/6tests/qtest/e1000e-test: Check qemu_recv() succeededtests/qtest/e1000e-test.c+2 -11 reply
3/6tests/qtest/hd-geo-test: Fix checks on mkstemp() return valuetests/qtest/hd-geo-test.c+2 -22 replies
4/6tests/qtest/pflash-cfi02-test: Avoid potential integer overflowtests/qtest/pflash-cfi02-test.c+1 -12 replies
5/6tests/qtest/tpm-tests: Remove unnecessary NULL checkstests/qtest/tpm-tests.c+4 -82 replies
6/6tests/unit/test-vmstate: Assert that dup() and mkstemp() succeedtests/unit/test-vmstate.c+2 -02 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéStefan Berger
1/6R-b
2/6R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] tests: Fix some minor Coverity issues

We have a backlog of Coverity issues in tests (because we only started running the scan on test code when we switched to meson and started building the test code in "make" rather than only in "make check"). This series fixes some of the easier ones. There's nothing exciting here, it's all little nits.

thanks
-- PMM

Peter Maydell (6):
tests/qtest/bios-tables-test: Check for dup2() failure tests/qtest/e1000e-test: Check qemu_recv() succeeded tests/qtest/hd-geo-test: Fix checks on mkstemp() return value tests/qtest/pflash-cfi02-test: Avoid potential integer overflow tests/qtest/tpm-tests: Remove unnecessary NULL checks tests/unit/test-vmstate: Assert that dup() and mkstemp() succeed

 tests/qtest/bios-tables-test.c  |  8 ++++++--
 tests/qtest/e1000e-test.c       |  3 ++-
 tests/qtest/hd-geo-test.c       |  4 ++--
 tests/qtest/pflash-cfi02-test.c |  2 +-
 tests/qtest/tpm-tests.c         | 12 ++++--------
 tests/unit/test-vmstate.c       |  2 ++
 6 files changed, 17 insertions(+), 14 deletions(-)
Signature · 1 line
2.20.1