]> Git Repo - qemu.git/commit
dbus-display: fix test race when initializing p2p connection
authorMarc-André Lureau <[email protected]>
Thu, 9 Jun 2022 15:26:47 +0000 (19:26 +0400)
committerGerd Hoffmann <[email protected]>
Tue, 19 Jul 2022 12:35:00 +0000 (14:35 +0200)
commitc8ddcdd6886b34d5d55d8d59973280e4c1b49195
tree88783665453f5bf329603fef5f534d3b42ce57b5
parent782378973121addeb11b13fd12a6ac2e69faa33f
dbus-display: fix test race when initializing p2p connection

The D-Bus connection starts processing messages before QEMU has the time
to set the object manager server. This is causing dbus-display-test to
fail randomly with:

ERROR:../tests/qtest/dbus-display-test.c:68:test_dbus_display_vm:
assertion failed
(qemu_dbus_display1_vm_get_name(QEMU_DBUS_DISPLAY1_VM(vm)) ==
"dbus-test"): (NULL == "dbus-test") ERROR

Use the delayed message processing flag and method to avoid that
situation.

(the bus connection doesn't need a fix, as the initialization is done
synchronously)

Reported-by: Robinson, Cole <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
Tested-by: Cole Robinson <[email protected]>
Message-Id: <20220609152647[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
ui/dbus.c
This page took 0.0261 seconds and 4 git commands to generate.