test: Add extremely rudimentary include path test
authorDaniel Stone <daniel@fooishbar.org>
Fri, 3 Aug 2012 01:34:53 +0000 (03:34 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 8 Aug 2012 14:23:30 +0000 (16:23 +0200)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
test/context.c

index f3ca783..d6acd05 100644 (file)
@@ -35,7 +35,9 @@ main(void)
 
     assert(context);
 
-    /* FIXME: Test include path stuff. */
+    assert(xkb_context_num_include_paths(context) == 1);
+    assert(!xkb_context_include_path_append(context, "¡NONSENSE!"));
+    assert(xkb_context_num_include_paths(context) == 1);
 
     xkb_context_unref(context);