test: Use test_get_context() in interactive
authorDaniel Stone <daniel@fooishbar.org>
Fri, 3 Aug 2012 00:36:40 +0000 (02:36 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 8 Aug 2012 11:30:24 +0000 (13:30 +0200)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
test/interactive.c

index 6a69609..2941c42 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/input.h>
 
 #include "xkbcommon/xkbcommon.h"
+#include "test.h"
 
 struct keyboard {
     char *path;
@@ -457,7 +458,7 @@ main(int argc, char *argv[])
         }
     }
 
-    ctx = xkb_context_new(0);
+    ctx = test_get_context();
     if (!ctx) {
         ret = -1;
         fprintf(stderr, "Couldn't create xkb context\n");