gck: Fix tests with p11-kit 0.13 and later
authorStef Walter <stefw@gnome.org>
Thu, 20 Sep 2012 13:33:15 +0000 (15:33 +0200)
committerStef Walter <stefw@gnome.org>
Tue, 25 Sep 2012 13:51:51 +0000 (15:51 +0200)
 * p11-kit now encodes all characters in the 'id' part of a PKCS#11 URI

https://bugzilla.gnome.org/show_bug.cgi?id=684477

gck/tests/test-gck-uri.c

index 8370133..8c733d3 100644 (file)
@@ -357,7 +357,7 @@ test_build_with_attributes (void)
        g_assert (g_str_has_prefix (uri, "pkcs11:"));
        g_assert (strstr (uri, "object=The%20Label"));
        g_assert (strstr (uri, "object-type=data"));
-       g_assert (strstr (uri, "id=TEST%00"));
+       g_assert (strstr (uri, "id=%54%45%53%54%00") || strstr (uri, "id=TEST%00"));
 
        g_free (uri);
 }