diff options
author | Miloslav Trmač <mitr@redhat.com> | 2012-07-24 14:08:22 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2012-07-30 07:42:01 +0200 |
commit | e26286847d4325d4c75cb5c661ddfc10af840177 (patch) | |
tree | 8924afbb5ace0a473818fadc0f25110eefab22b8 /t/test_umberlog.c | |
parent | c50904d3d0dbc95588eccdf147d9e33b6edece58 (diff) | |
download | libumberlog-e26286847d4325d4c75cb5c661ddfc10af840177.tar.gz libumberlog-e26286847d4325d4c75cb5c661ddfc10af840177.tar.xz libumberlog-e26286847d4325d4c75cb5c661ddfc10af840177.zip |
Mark missing host name separately from flags.
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č <mitr@redhat.com>
Diffstat (limited to 't/test_umberlog.c')
-rw-r--r-- | t/test_umberlog.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 (); |