test: Use test_get_context() in interactive Signed-off-by: Daniel Stone <daniel@fooishbar.org>
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");