From 8cfef10830350c565e8ee917f83b9e97016a0a62 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 28 Apr 2012 18:18:32 +0200 Subject: Add a closelog() wrapper to clear the environment Our openlog() wrapper fills in a couple of variables, and those were kept around even after a closelog(), and thus, affected ul_format() calls even after a closelog(). This in turn, made one of the test cases fail, as that was relying on the default behaviour, which was modified due to an openlog() in an earlier test case. We now wrap closelog() aswell, and NULL out our settings to get a clean state, and add a test case to verify this behaviour aswell. Signed-off-by: Gergely Nagy --- lib/libumberlog.ld | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libumberlog.ld') diff --git a/lib/libumberlog.ld b/lib/libumberlog.ld index 8cd48e7..225d51c 100644 --- a/lib/libumberlog.ld +++ b/lib/libumberlog.ld @@ -15,3 +15,8 @@ LIBUMBERLOG_0.1.0 { facilitynames; prioritynames; }; + +LIBUMBERLOG_0.2.1 { + global: + ul_closelog; +} LIBUMBERLOG_0.1.0; -- cgit