summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlban Crequy <alban.crequy@collabora.co.uk>2014-11-03 16:04:45 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-11-18 19:13:29 +0000
commit84db0981e087f0010dbd591b97db94d492de8f7a (patch)
tree22ef745c3e302b235392662924afd9da7e80f8f7 /test
parent3630959879895fe93b5bec084102aaca9c7c0c05 (diff)
downloaddbus-84db0981e087f0010dbd591b97db94d492de8f7a.tar.gz
DBusSystemLogSeverity: add DBUS_SYSTEM_LOG_WARNING
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85105
Diffstat (limited to 'test')
-rw-r--r--test/internals/syslog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/internals/syslog.c b/test/internals/syslog.c
index 7e0eae79..80a0cebb 100644
--- a/test/internals/syslog.c
+++ b/test/internals/syslog.c
@@ -68,16 +68,18 @@ test_syslog (Fixture *f,
{
_dbus_init_system_log (FALSE);
_dbus_system_log (DBUS_SYSTEM_LOG_INFO, MESSAGE "%d", 42);
+ _dbus_system_log (DBUS_SYSTEM_LOG_WARNING, MESSAGE "%d", 45);
_dbus_system_log (DBUS_SYSTEM_LOG_SECURITY, MESSAGE "%d", 666);
exit (0);
}
g_test_trap_assert_passed ();
- g_test_trap_assert_stderr ("*" MESSAGE "42\n*" MESSAGE "666\n*");
+ g_test_trap_assert_stderr ("*" MESSAGE "42\n*" MESSAGE "45\n*" MESSAGE "666\n*");
#endif
/* manual test (this is the best we can do on Windows) */
_dbus_init_system_log (FALSE);
_dbus_system_log (DBUS_SYSTEM_LOG_INFO, MESSAGE "%d", 42);
+ _dbus_system_log (DBUS_SYSTEM_LOG_WARNING, MESSAGE "%d", 45);
_dbus_system_log (DBUS_SYSTEM_LOG_SECURITY, MESSAGE "%d", 666);
}