Skip to content

qobject: Cleanups, mostly in tests

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14qdict: Make qdict_get_qlist() safe like qdict_get_qdict()qobject/qdict.c+3 -271 reply
2/14check-qdict: Simplify qdict_crumple_test_recursive()tests/check-qdict.c+9 -162 replies
3/14check-qdict: Tighten qdict_crumple_test_recursive() sometests/check-qdict.c+5 -01 reply
4/14check-qjson: Simplify around compare_litqobj_to_qobj()tests/check-qjson.c+1 -211 reply
5/14libqtest: Clean up qmp_response() a bittests/libqtest.c+2 -21 reply
6/14test-qmp-event: Simplify and tighten event_test_emit()tests/test-qmp-event.c+4 -101 reply
7/14Don't check qobject_type() before qobject_to_qdict()block.c hw/pci/pcie_aer.c monitor.c +3 more+24 -471 reply
8/14tests: Don't check qobject_type() before qobject_to_qlist()tests/test-qobject-output-visitor.c+2 -51 reply
9/14tests: Don't check qobject_type() before qobject_to_qstring()tests/check-qjson.c tests/test-qobject-output-visitor.c+25 -431 reply
10/14tests: Don't check qobject_type() before qobject_to_qint()tests/check-qjson.c tests/test-qobject-output-visitor.c+17 -351 reply
11/14tests: Don't check qobject_type() before qobject_to_qfloat()tests/check-qjson.c tests/test-qobject-output-visitor.c+6 -141 reply
12/14tests: Don't check qobject_type() before qobject_to_qbool()tests/check-qjson.c tests/test-qobject-output-visitor.c+11 -251 reply
13/14monitor: Clean up handle_hmp_command() a bitmonitor.c+5 -41 reply
14/14block: Don't bother asserting type of output visitor's outputblock/nbd.c block/nfs.c block/qapi.c+0 -51 reply

Reviews trailers per patch

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

PatchEric Blake
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-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 [Qemu-devel] [PATCH 00/14] qobject: Cleanups, mostly in tests

Markus Armbruster (14):
qdict: Make qdict_get_qlist() safe like qdict_get_qdict()
check-qdict: Simplify qdict_crumple_test_recursive()
check-qdict: Tighten qdict_crumple_test_recursive() some
check-qjson: Simplify around compare_litqobj_to_qobj()
libqtest: Clean up qmp_response() a bit
test-qmp-event: Simplify and tighten event_test_emit() Don't check qobject_type() before qobject_to_qdict()
tests: Don't check qobject_type() before qobject_to_qlist()
tests: Don't check qobject_type() before qobject_to_qstring()
tests: Don't check qobject_type() before qobject_to_qint()
tests: Don't check qobject_type() before qobject_to_qfloat()
tests: Don't check qobject_type() before qobject_to_qbool()
monitor: Clean up handle_hmp_command() a bit
block: Don't bother asserting type of output visitor's output

 block.c                             |   4 +-
 block/nbd.c                         |   2 -
 block/nfs.c                         |   2 -
 block/qapi.c                        |   1 -
 hw/pci/pcie_aer.c                   |   2 +-
 monitor.c                           |  19 +++---
 qapi/qmp-dispatch.c                 |   5 +-
 qobject/qdict.c                     |  30 +-------
 tests/check-qdict.c                 |  37 ++++------
 tests/check-qjson.c                 | 113 ++++++------------------------
 tests/libqtest.c                    |   4 +-
 tests/test-qmp-event.c              |  14 ++--
 tests/test-qobject-output-visitor.c | 133 ++++++++++++++----------------------
 13 files changed, 113 insertions(+), 253 deletions(-)
Signature · 1 line
2.7.4