Increase log verbosity in tests Signed-off-by: Daniel Stone <daniel@fooishbar.org>
diff --git a/test/common.c b/test/common.c
index 8ab73cf..c1f9786 100644
--- a/test/common.c
+++ b/test/common.c
@@ -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;
}
diff --git a/test/log.c b/test/log.c
index 78d97ee..d030ff7 100644
--- a/test/log.c
+++ b/test/log.c
@@ -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);