diff options
author | David Robillard <d@drobilla.net> | 2009-03-30 14:44:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-30 14:44:56 +0000 |
commit | d909a9f409849dfe4072f2f57fdd2349ca8a0a3c (patch) | |
tree | 4364f25265aca621db2208505e39f4f183ff7b5a /test | |
parent | 8a24811ad2d2e587af6fe5ad487af08f74bccf38 (diff) | |
download | lilv-d909a9f409849dfe4072f2f57fdd2349ca8a0a3c.tar.gz lilv-d909a9f409849dfe4072f2f57fdd2349ca8a0a3c.tar.bz2 lilv-d909a9f409849dfe4072f2f57fdd2349ca8a0a3c.zip |
Fix memory leaks.
Document ownership semantics of query value accessors.
Fix test ccflags for new waf.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1951 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r-- | test/slv2_test.c | 14 | ||||
-rw-r--r-- | test/wscript | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/test/slv2_test.c b/test/slv2_test.c index 65eba90..24f26a0 100644 --- a/test/slv2_test.c +++ b/test/slv2_test.c @@ -697,12 +697,14 @@ test_plugin() "SELECT ?name WHERE { <> doap:maintainer [ foaf:name ?name ] }"); TEST_ASSERT(!slv2_results_finished(results)); TEST_ASSERT(!strcmp(slv2_results_get_binding_name(results, 0), "name")); - TEST_ASSERT(!strcmp( - slv2_value_as_string(slv2_results_get_binding_value(results, 0)), - "David Robillard")); - TEST_ASSERT(!strcmp( - slv2_value_as_string(slv2_results_get_binding_value_by_name(results, "name")), - "David Robillard")); + SLV2Value val = slv2_results_get_binding_value(results, 0); + TEST_ASSERT(!strcmp(slv2_value_as_string(val), "David Robillard")); + slv2_value_free(val); + val = slv2_results_get_binding_value_by_name(results, "name"); + TEST_ASSERT(!strcmp(slv2_value_as_string(val), "David Robillard")); + slv2_value_free(val); + + slv2_results_free(results); slv2_uis_free(uis); slv2_values_free(thing_names); diff --git a/test/wscript b/test/wscript index cd42778..93e7def 100644 --- a/test/wscript +++ b/test/wscript @@ -14,5 +14,5 @@ def build(bld): obj.libs = 'gcov' obj.target = i obj.install_path = '' - obj.ccflags = '-fprofile-arcs -ftest-coverage' + obj.ccflags = [ '-fprofile-arcs', '-ftest-coverage' ] |