test_terminal: parse command line arguments
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 24 Mar 2012 12:41:30 +0000 (13:41 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 24 Mar 2012 12:41:30 +0000 (13:41 +0100)
Parse command line arguments so the input subsystem recognizes the XKB
values.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
tests/test_terminal.c

index c9ccc22..814872c 100644 (file)
@@ -37,6 +37,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/wait.h>
+#include "conf.h"
 #include "eloop.h"
 #include "input.h"
 #include "log.h"
@@ -249,6 +250,8 @@ int main(int argc, char **argv)
        int ret;
 
        log_info("test: starting\n");
+       conf_parse_argv(argc, argv);
+       log_set_config(&LOG_CONFIG_INFO(1, 1));
        memset(&app, 0, sizeof(app));
 
        ret = setup_app(&app);