diff options
author | David Robillard <d@drobilla.net> | 2011-02-12 04:25:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-12 04:25:39 +0000 |
commit | c32c1593bc6b7c887e7c106531de2567b0da5aa1 (patch) | |
tree | fedac05f9957c298de652900646811a0b35b4815 /test | |
parent | 4d75c4711b12747e37286f5c3cc5bf741d7b351e (diff) | |
download | lilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.tar.gz lilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.tar.bz2 lilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.zip |
Make UI support a compile-time option, and separate UI functions into slv2/ui.h.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2930 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r-- | test/slv2_test.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/slv2_test.c b/test/slv2_test.c index 8c1f790..e1d61b7 100644 --- a/test/slv2_test.c +++ b/test/slv2_test.c @@ -28,7 +28,11 @@ #include <limits.h> #include <float.h> #include <math.h> + #include "slv2/slv2.h" +#ifdef SLV2_WITH_UI +#include "slv2/ui.h" +#endif #define TEST_PATH_MAX 1024 @@ -706,10 +710,12 @@ test_plugin() TEST_ASSERT(slv2_value_is_string(thing_name)); TEST_ASSERT(!strcmp(slv2_value_as_string(thing_name), "Something else")); + #ifdef SLV2_WITH_UI SLV2UIs uis = slv2_plugin_get_uis(plug); TEST_ASSERT(slv2_uis_size(uis) == 0); - slv2_uis_free(uis); + #endif + slv2_values_free(thing_names); slv2_value_free(thing_uri); slv2_value_free(name_p); @@ -914,6 +920,7 @@ test_port() /*****************************************************************************/ +#ifdef SLV2_WITH_UI int test_ui() { @@ -1014,6 +1021,7 @@ test_ui() cleanup_uris(); return 1; } +#endif /* SLV2_WITH_UI */ /*****************************************************************************/ @@ -1029,7 +1037,9 @@ static struct TestCase tests[] = { TEST_CASE(plugin), TEST_CASE(port), TEST_CASE(plugin), +#ifdef SLV2_WITH_UI TEST_CASE(ui), +#endif { NULL, NULL } }; |