context test: Use test_get_context()
authorDaniel Stone <daniel@fooishbar.org>
Wed, 25 Jul 2012 08:55:06 +0000 (10:55 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Fri, 27 Jul 2012 09:59:55 +0000 (11:59 +0200)
So we don't die if we haven't got a valid global include path.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
test/context.c

index 016c5ea..f3ca783 100644 (file)
 #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);