Commit f3c4032f35eceeeb2285559b9e87889ec36351d1

Ran Benita 2012-08-30T20:23:35

Set log level for tests through env, not directly This way the test logs have all the information, but we don't get eye bleed every time we run them manually. One can always use TESTS_ENVIRONMENT (we correctly use AM_TESTS_ENVIRONMENT now), or set the envvars from the shell. Signed-off-by: Ran Benita <ran234@gmail.com>

diff --git a/Makefile.am b/Makefile.am
index 011cbe2..63567d8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -105,7 +105,9 @@ libtest_la_SOURCES = \
 	$(libxkbcommon_la_SOURCES) \
 	test/common.c
 
-TESTS_ENVIRONMENT =
+AM_TESTS_ENVIRONMENT = \
+	XKB_LOG=debug; export XKB_LOG; \
+	XKB_VERBOSITY=10; export XKB_VERBOSITY;
 
 TESTS = \
 	test/keysym \
diff --git a/test/common.c b/test/common.c
index 351276e..8ab73cf 100644
--- a/test/common.c
+++ b/test/common.c
@@ -101,9 +101,6 @@ test_get_context(void)
 
     xkb_context_include_path_append(ctx, test_get_path(""));
 
-    xkb_set_log_level(ctx, XKB_LOG_LEVEL_DEBUG);
-    xkb_set_log_verbosity(ctx, 101);
-
     return ctx;
 }