summaryrefslogtreecommitdiff
path: root/p11-kit/tests
diff options
context:
space:
mode:
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);