summaryrefslogtreecommitdiff
path: root/p11-kit/tests
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-01-07 11:12:29 +0100
committerStef Walter <stefw@gnome.org>2013-01-09 13:49:44 +0100
commit3ebc9a78d4bca0b630a8b887ab93d6cc654f2cb2 (patch)
tree03c91a439c775d400054343b4157c3720c1dd3fc /p11-kit/tests
parent4a0bd25fcafae57ef2ae0cfe8676eee2332d5951 (diff)
Add common functions for manipulating CK_ATTRIBUTE arrays
Diffstat (limited to 'p11-kit/tests')
-rw-r--r--p11-kit/tests/uri-test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/p11-kit/tests/uri-test.c b/p11-kit/tests/uri-test.c
index 0e3e722..ba4c634 100644
--- a/p11-kit/tests/uri-test.c
+++ b/p11-kit/tests/uri-test.c
@@ -993,12 +993,14 @@ test_uri_get_set_attribute (CuTest *tc)
ret = p11_kit_uri_set_attribute (uri, &attr);
CuAssertIntEquals (tc, P11_KIT_URI_OK, ret);
+ /* We can set other attributes */
attr.type = CKA_COLOR;
ret = p11_kit_uri_set_attribute (uri, &attr);
- CuAssertIntEquals (tc, P11_KIT_URI_NOT_FOUND, ret);
+ CuAssertIntEquals (tc, P11_KIT_URI_OK, ret);
+ /* And get them too */
ptr = p11_kit_uri_get_attribute (uri, CKA_COLOR);
- CuAssertPtrEquals (tc, NULL, ptr);
+ CuAssertPtrNotNull (tc, ptr);
ptr = p11_kit_uri_get_attribute (uri, CKA_LABEL);
CuAssertPtrNotNull (tc, ptr);