libqos: Use explicit QTestState for fw_cfg operations
Drop one more client of global_qtest by teaching all fw_cfg test functionality (invoked through alloc-pc) to pass in an explicit QTestState, adjusting all callers. In particular, fw_cfg-test had to reorder things to create the test state prior to creating the fw_cfg (and drop a pointless strdup in the meantime), but that test now no longer depends on global_qtest. Signed-off-by:Eric Blake <eblake@redhat.com> Reviewed-by:
John Snow <jsnow@redhat.com> Reviewed-by:
Thomas Huth <thuth@redhat.com> [thuth: Fixed conflict wrt pc_alloc_init() in vhost-user-test.c] Signed-off-by:
Thomas Huth <thuth@redhat.com>
Showing
- tests/boot-order-test.c 3 additions, 3 deletionstests/boot-order-test.c
- tests/e1000e-test.c 1 addition, 1 deletiontests/e1000e-test.c
- tests/fw_cfg-test.c 4 additions, 9 deletionstests/fw_cfg-test.c
- tests/ide-test.c 1 addition, 1 deletiontests/ide-test.c
- tests/libqos/fw_cfg.c 8 additions, 6 deletionstests/libqos/fw_cfg.c
- tests/libqos/fw_cfg.h 6 additions, 4 deletionstests/libqos/fw_cfg.h
- tests/libqos/libqos.c 1 addition, 1 deletiontests/libqos/libqos.c
- tests/libqos/libqos.h 1 addition, 1 deletiontests/libqos/libqos.h
- tests/libqos/malloc-pc.c 4 additions, 4 deletionstests/libqos/malloc-pc.c
- tests/libqos/malloc-pc.h 2 additions, 2 deletionstests/libqos/malloc-pc.h
- tests/libqos/malloc-spapr.c 2 additions, 2 deletionstests/libqos/malloc-spapr.c
- tests/libqos/malloc-spapr.h 1 addition, 1 deletiontests/libqos/malloc-spapr.h
- tests/libqos/malloc.h 1 addition, 0 deletionstests/libqos/malloc.h
- tests/vhost-user-test.c 1 addition, 1 deletiontests/vhost-user-test.c
Loading
Please register or sign in to comment