From: Stef Walter Date: Thu, 20 Sep 2012 13:33:15 +0000 (+0200) Subject: gck: Fix tests with p11-kit 0.13 and later X-Git-Tag: upstream/3.7.5~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcd65c6dae9ce51ce0fabafc66af98766e5a879e;p=platform%2Fupstream%2Fgcr.git gck: Fix tests with p11-kit 0.13 and later * p11-kit now encodes all characters in the 'id' part of a PKCS#11 URI https://bugzilla.gnome.org/show_bug.cgi?id=684477 --- diff --git a/gck/tests/test-gck-uri.c b/gck/tests/test-gck-uri.c index 8370133..8c733d3 100644 --- a/gck/tests/test-gck-uri.c +++ b/gck/tests/test-gck-uri.c @@ -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); }