Commit 3f0169424f81cb514460c1103c1bc9485568dfd0

Daniel Stone 2012-08-03T02:36:40

test: Use test_get_context() in interactive Signed-off-by: Daniel Stone <daniel@fooishbar.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/interactive.c b/test/interactive.c
index 6a69609..2941c42 100644
--- a/test/interactive.c
+++ b/test/interactive.c
@@ -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");