diff options
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' ] |