summaryrefslogtreecommitdiffstats
path: root/t/test_umberlog.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2012-07-24 13:41:14 +0200
committerMiloslav Trmač <mitr@redhat.com>2012-07-30 07:29:13 +0200
commit084c4caeb3c7e0ab4fe8931b100fdab792e25862 (patch)
tree1d7bae2a7935b5f4278125c347c821686eb7a00e /t/test_umberlog.c
parente8d2d56386a689f0e21125b7cf394c481fa1534a (diff)
downloadlibumberlog-084c4caeb3c7e0ab4fe8931b100fdab792e25862.tar.gz
libumberlog-084c4caeb3c7e0ab4fe8931b100fdab792e25862.tar.xz
libumberlog-084c4caeb3c7e0ab4fe8931b100fdab792e25862.zip
Don't reset flags on closelog()
... to be compatible with BSD syslog.
Diffstat (limited to 't/test_umberlog.c')
-rw-r--r--t/test_umberlog.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/test_umberlog.c b/t/test_umberlog.c
index 2548001..fdc48dc 100644
--- a/t/test_umberlog.c
+++ b/t/test_umberlog.c
@@ -257,6 +257,17 @@ START_TEST (test_closelog)
jo = parse_msg (msg);
free (msg);
+ verify_value_missing (jo, "facility");
+
+ json_object_put (jo);
+
+ openlog ("umberlog/test_closelog", 0, LOG_LOCAL0);
+ closelog ();
+
+ msg = ul_format (LOG_DEBUG, "%s", __FUNCTION__, NULL);
+ jo = parse_msg (msg);
+ free (msg);
+
verify_value (jo, "facility", "local0");
#ifdef HAVE_PROGRAM_INVOCATION_SHORT_NAME
verify_value (jo, "program", "test_umberlog");