• E
    qmp-test: Drop dependence on global_qtest · 6a5c88f5
    Eric Blake 提交于
    As a general rule, we prefer avoiding implicit global state
    because it makes code harder to safely copy and paste without
    thinking about the global state.  Although qmp-test does not
    maintain parallel qtest connections, it was the last test
    assigning to global_qtest.  It's just as easy to be explicit
    about the state; once all tests have been cleaned up, a later
    patch can then get rid of global_qtest and a layer of wrappers
    in libqtest.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Reviewed-by: NThomas Huth <thuth@redhat.com>
    Signed-off-by: NThomas Huth <thuth@redhat.com>
    6a5c88f5
qmp-test.c 8.6 KB