]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix crash when printing debug messages
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 26 Jun 2017 16:35:57 +0000 (18:35 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Jun 2017 13:29:01 +0000 (15:29 +0200)
This fixes commit 6cbeb107db8f687c6c2298b1d8a6240e4da31116.

test/unit/test.c

index 29f23ac24afec65e3e7e2865f229dedc6e47ea7f..67f7678c761bb15ddbbf5be728764c697593f4d3 100644 (file)
@@ -64,8 +64,12 @@ main(int argc, char **argv)
   printf("Testing %-30s ", test_name);
   fflush(stdout);
 
+  LOG_Initialise();
+
   test_unit();
 
+  LOG_Finalise();
+
   printf("PASS\n");
 
   return 0;