summaryrefslogtreecommitdiff
path: root/common/tests
diff options
context:
space:
mode:
Diffstat (limited to 'common/tests')
-rw-r--r--common/tests/test-attrs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/tests/test-attrs.c b/common/tests/test-attrs.c
index f1e6d91..61fcef3 100644
--- a/common/tests/test-attrs.c
+++ b/common/tests/test-attrs.c
@@ -474,9 +474,13 @@ test_to_string (CuTest *tc)
CuAssertStrEquals (tc, "{ CKA_LABEL = (3) \"yay\" }", string);
free (string);
- string = p11_attrs_to_string (attrs);
+ string = p11_attrs_to_string (attrs, -1);
CuAssertStrEquals (tc, "(2) [ { CKA_LABEL = (3) \"yay\" }, { CKA_VALUE = (5) NOT-PRINTED } ]", string);
free (string);
+
+ string = p11_attrs_to_string (attrs, 1);
+ CuAssertStrEquals (tc, "(1) [ { CKA_LABEL = (3) \"yay\" } ]", string);
+ free (string);
}
static void