diff options
author | David Robillard <d@drobilla.net> | 2008-12-13 06:26:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-13 06:26:31 +0000 |
commit | 653b8103c8e146be8d5a3ae7cebc8deeca86c0cd (patch) | |
tree | 1bdc614db679bc56046e4582f201ce0aa7a9f5f7 /test | |
parent | 0484bfdcf79e4ce8602b8e3ded3ab364e8790b02 (diff) | |
download | lilv-653b8103c8e146be8d5a3ae7cebc8deeca86c0cd.tar.gz lilv-653b8103c8e146be8d5a3ae7cebc8deeca86c0cd.tar.bz2 lilv-653b8103c8e146be8d5a3ae7cebc8deeca86c0cd.zip |
Test port lookup by symbol using new value constructors: 83.4% coverage.
Replace warnings about ORDER BY being broken with fatal errors - it's catastropic anyway.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1864 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r-- | test/slv2_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/slv2_test.c b/test/slv2_test.c index af5cfef..41335ec 100644 --- a/test/slv2_test.c +++ b/test/slv2_test.c @@ -708,11 +708,12 @@ test_port() SLV2Plugin plug = slv2_plugins_get_by_uri(plugins, plugin_uri_value); TEST_ASSERT(plug); + SLV2Value psym = slv2_value_new_string(world, "foo"); SLV2Port p = slv2_plugin_get_port_by_index(plug, 0); - //SLV2Port p2 = slv2_plugin_get_port_by_symbol(plug, "foo"); + SLV2Port p2 = slv2_plugin_get_port_by_symbol(plug, psym); TEST_ASSERT(p != NULL); - //TEST_ASSERT(p2 != NULL); - //TEST_ASSERT(p == p2); + TEST_ASSERT(p2 != NULL); + TEST_ASSERT(p == p2); SLV2Value audio_class = slv2_value_new_uri(world, "http://lv2plug.in/ns/lv2core#AudioPort"); |