diff options
author | David Robillard <d@drobilla.net> | 2008-12-20 15:46:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-20 15:46:23 +0000 |
commit | 41e78083edf87c3094bd2ebd5cf4475805e9b076 (patch) | |
tree | 55ae6fa02f046aa5b5834c401851edaf8c92d240 | |
parent | 92b5cd297d742ce7874f6ed6d52d26970ea30b16 (diff) | |
download | lilv-41e78083edf87c3094bd2ebd5cf4475805e9b076.tar.gz lilv-41e78083edf87c3094bd2ebd5cf4475805e9b076.tar.bz2 lilv-41e78083edf87c3094bd2ebd5cf4475805e9b076.zip |
Fix TEST_ASSERT macro trailing semicolon stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1873 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | test/slv2_test.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/slv2_test.c b/test/slv2_test.c index 7a2abc6..4a65cb3 100644 --- a/test/slv2_test.c +++ b/test/slv2_test.c @@ -153,7 +153,7 @@ cleanup() error_count++;\ fprintf(stderr, "Failure at slv2_test.c:%d: %s\n", __LINE__, #check);\ }\ -} while (0); +} while (0) typedef int (*TestFunc)(); @@ -539,7 +539,7 @@ test_classes() SLV2PluginClasses children = slv2_plugin_class_get_children(plugin); TEST_ASSERT(slv2_plugin_class_get_parent_uri(plugin) == NULL); - TEST_ASSERT(slv2_plugin_classes_size(classes) > slv2_plugin_classes_size(children)) + TEST_ASSERT(slv2_plugin_classes_size(classes) > slv2_plugin_classes_size(children)); TEST_ASSERT(!strcmp(slv2_value_as_string(slv2_plugin_class_get_label(plugin)), "Plugin")); TEST_ASSERT(!strcmp(slv2_value_as_string(slv2_plugin_class_get_uri(plugin)), "http://lv2plug.in/ns/lv2core#Plugin")); @@ -641,14 +641,14 @@ test_plugin() SLV2Value out_class = slv2_value_new_uri(world, "http://lv2plug.in/ns/lv2core#OutputPort"); - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, control_class, NULL) == 3) - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, audio_class, NULL) == 0) - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, in_class, NULL) == 2) - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, out_class, NULL) == 1) - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, control_class, in_class, NULL) == 2) - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, control_class, out_class, NULL) == 1) - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, audio_class, in_class, NULL) == 0) - TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, audio_class, out_class, NULL) == 0) + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, control_class, NULL) == 3); + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, audio_class, NULL) == 0); + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, in_class, NULL) == 2); + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, out_class, NULL) == 1); + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, control_class, in_class, NULL) == 2); + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, control_class, out_class, NULL) == 1); + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, audio_class, in_class, NULL) == 0); + TEST_ASSERT(slv2_plugin_get_num_ports_of_class(plug, audio_class, out_class, NULL) == 0); TEST_ASSERT(slv2_plugin_has_latency(plug)); TEST_ASSERT(slv2_plugin_get_latency_port_index(plug) == 2); |