Commit ca7927ae60ad70ebd5bef5cc3644ddcbeaa6dd06

Daniel Stone 2012-07-25T10:55:06

context test: Use test_get_context() So we don't die if we haven't got a valid global include path. 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
diff --git a/test/context.c b/test/context.c
index 016c5ea..f3ca783 100644
--- a/test/context.c
+++ b/test/context.c
@@ -26,11 +26,12 @@
 #include <assert.h>
 
 #include "xkbcommon/xkbcommon.h"
+#include "test.h"
 
 int
 main(void)
 {
-    struct xkb_context *context = xkb_context_new(0);
+    struct xkb_context *context = test_get_context();
 
     assert(context);