]> xenbits.xensource.com Git - libvirt.git/commitdiff
vbox: Don't warn when the linker search path doesn't contain VBoxXPCOMC.so
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 29 Oct 2010 14:31:29 +0000 (16:31 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 29 Oct 2010 14:33:31 +0000 (16:33 +0200)
This is actually a workaround, to unbreak make check on systems
without VirtualBox.

src/vbox/vbox_XPCOMCGlue.c

index 7648e547fa2bdb5b1d17eb76daab14a901de2425..15a9622d957793fb20ab9f93bce61ea51a133074 100644 (file)
@@ -124,7 +124,14 @@ static int tryLoadOne(const char *dir, bool setAppHome, bool ignoreMissing)
     g_hVBoxXPCOMC = dlopen(name, RTLD_NOW | RTLD_LOCAL);
 
     if (g_hVBoxXPCOMC == NULL) {
-        VIR_WARN("Could not dlopen '%s': %s", name, dlerror());
+        /*
+         * FIXME: Don't warn in this case as it currently breaks make check
+         *        on systems without VirtualBox.
+         */
+        if (dir != NULL) {
+            VIR_WARN("Could not dlopen '%s': %s", name, dlerror());
+        }
+
         goto cleanup;
     }