]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Don't use _dbus_warn() for intentionally-skipped tests
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 2 Nov 2015 18:19:02 +0000 (18:19 +0000)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 2 Nov 2015 22:32:06 +0000 (23:32 +0100)
The tests are run with _dbus_warn() fatal, so if a particular test is
not applicable on the current platform, we shouldn't call it.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92721
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
dbus/dbus-auth-script.c

index 738722037a882e482f501b6d678a94e88f120366..aaaed30d35e40aefdb53cde2156f8bb49e89dc06 100644 (file)
@@ -25,6 +25,9 @@
 #ifdef DBUS_ENABLE_EMBEDDED_TESTS
 
 #include "dbus-auth-script.h"
+
+#include <stdio.h>
+
 #include "dbus-auth.h"
 #include "dbus-string.h"
 #include "dbus-hash.h"
@@ -339,7 +342,7 @@ _dbus_auth_script_run (const DBusString *filename)
                                                "UNIX_ONLY"))
         {
           /* skip this file */
-          _dbus_warn ("skipping unix only auth script\n");
+          fprintf (stderr, "skipping unix only auth script\n");
           retval = TRUE;
           goto out;
         }
@@ -355,7 +358,7 @@ _dbus_auth_script_run (const DBusString *filename)
                                                "WIN_ONLY"))
         {
           /* skip this file */
-          _dbus_warn ("skipping windows only auth script\n");
+          fprintf (stderr, "skipping windows only auth script\n");
           retval = TRUE;
           goto out;
         }