]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix crash in virsystemdtest with dbus 1.7.6
authorCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 18 Dec 2013 17:33:44 +0000 (17:33 +0000)
committerEric Blake <eblake@redhat.com>
Tue, 23 Dec 2014 17:45:03 +0000 (10:45 -0700)
D-bus introduced some changes in its locking code. Overriding the init
function skips the new locking init and thus crashes later in libvirt
test. Removing the function makes the test pass again.

(cherry picked from commit 5e397d9c0f2ce7d464f8e7e6a598d1c955dfc04a)

tests/virsystemdmock.c

index 5dbd33f9789d71f940bfa2124802b74d13619c8c..7cf3ac10de17e8d235fce4faeaee730cf4e46d40 100644 (file)
@@ -31,11 +31,6 @@ void dbus_connection_set_change_sigpipe(dbus_bool_t will_modify_sigpipe ATTRIBUT
 {
 }
 
-dbus_bool_t dbus_threads_init_default(void)
-{
-    return 1;
-}
-
 DBusConnection *dbus_bus_get(DBusBusType type ATTRIBUTE_UNUSED,
                              DBusError *error ATTRIBUTE_UNUSED)
 {