summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-04-30 09:22:49 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-04-30 09:22:49 +0000
commit9cc0ff6d43e8c32ea32f80755221eaf8ae4eb370 (patch)
tree66097ed3025a939865b4a9bc3bf3983e35bbcdca /tests
parent99f82a04b5ae8e6ba0e66be15c4b7b6788f17797 (diff)
downloadlasso-9cc0ff6d43e8c32ea32f80755221eaf8ae4eb370.tar.gz
lasso-9cc0ff6d43e8c32ea32f80755221eaf8ae4eb370.tar.xz
lasso-9cc0ff6d43e8c32ea32f80755221eaf8ae4eb370.zip
Test: only test custom namespace if ID-WSF is enabled
Diffstat (limited to 'tests')
-rw-r--r--tests/basic_tests.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/basic_tests.c b/tests/basic_tests.c
index 07e9c647..4099236a 100644
--- a/tests/basic_tests.c
+++ b/tests/basic_tests.c
@@ -1910,10 +1910,10 @@ print_namespace(const char *prefix, const char *href, G_GNUC_UNUSED gpointer dat
/* test custom namespace handling */
START_TEST(test12_custom_namespace)
{
+#ifdef LASSO_WSF_ENABLED
LassoNode *node;
LassoIdWsf2DstRefResultQuery *result_query;
char *dump;
-
node = (LassoNode*)lasso_idwsf2_dstref_result_query_new();
check_not_null(node);
lasso_node_add_custom_namespace(node, "example", "http://example.com");
@@ -1935,6 +1935,7 @@ START_TEST(test12_custom_namespace)
g_hash_table_foreach(result_query->namespaces, (GHFunc)print_namespace, NULL);
#endif
lasso_release_string(dump);
+#endif
}
END_TEST