Increase log verbosity in tests
authorDaniel Stone <daniel@fooishbar.org>
Wed, 8 Aug 2012 11:56:28 +0000 (13:56 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 8 Aug 2012 14:23:31 +0000 (16:23 +0200)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
test/common.c
test/log.c

index 8ab73cf..c1f9786 100644 (file)
@@ -35,6 +35,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/syslog.h>
 
 #include "xkbcommon/xkbcommon.h"
 #include "test.h"
@@ -101,6 +102,9 @@ test_get_context(void)
 
     xkb_context_include_path_append(ctx, test_get_path(""));
 
+    xkb_set_log_priority(ctx, LOG_DEBUG);
+    xkb_set_log_verbosity(ctx, 101);
+
     return ctx;
 }
 
index 78d97ee..d030ff7 100644 (file)
@@ -76,7 +76,7 @@ main(void)
     ret = setenv("XKB_LOG", "warn", 1);
     ret = setenv("XKB_VERBOSITY", "5", 1);
     assert(ret == 0);
-    ctx = test_get_context();
+    ctx = xkb_context_new(0);
     assert(ctx);
 
     darray_init(log_string);