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>
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);