From e26286847d4325d4c75cb5c661ddfc10af840177 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Tue, 24 Jul 2012 14:08:22 +0200 Subject: Mark missing host name separately from flags. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This simplifies the syslog() path a little, and allows us to express "host name should be cached but no value is set.". Because host name field is already emptied by default and in closelog (), this also means uncached data is used before openlog () and after closelog (). Signed-off-by: Miloslav Trmač --- t/test_umberlog.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 't/test_umberlog.c') diff --git a/t/test_umberlog.c b/t/test_umberlog.c index 8a47ab1..cc437cf 100644 --- a/t/test_umberlog.c +++ b/t/test_umberlog.c @@ -295,6 +295,7 @@ START_TEST (test_closelog) verify_value_differs (jo, "uid", "0"); if (getgid () != 0) verify_value_differs (jo, "gid", "0"); + verify_value_differs (jo, "host", ""); json_object_put (jo); } @@ -354,6 +355,7 @@ START_TEST (test_openlog_defaults) verify_value_differs (jo, "uid", "0"); if (getgid () != 0) verify_value_differs (jo, "gid", "0"); + verify_value_differs (jo, "host", ""); json_object_put (jo); closelog (); -- cgit