diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-11-02 18:19:02 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2015-11-02 23:32:06 +0100 |
commit | 78545a32c57f7b1571dd10e20a049cb0caf705e6 (patch) | |
tree | 0350256666d215e16f61da35b6f423004aa559d2 | |
parent | 2f1a715e7f77739cca6afe371a971174d5879c07 (diff) | |
download | dbus-78545a32c57f7b1571dd10e20a049cb0caf705e6.tar.gz |
Don't use _dbus_warn() for intentionally-skipped tests
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>
-rw-r--r-- | dbus/dbus-auth-script.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dbus/dbus-auth-script.c b/dbus/dbus-auth-script.c index 73872203..aaaed30d 100644 --- a/dbus/dbus-auth-script.c +++ b/dbus/dbus-auth-script.c @@ -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; } |