[Spice-commits] tests/test-ssl-verify.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Mar 13 17:22:42 UTC 2019


 tests/test-ssl-verify.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 387d1842d190097bc50189f0d5388226f9a7bcfe
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Jan 11 10:18:07 2019 +0000

    test-ssl-verify: Improve subject_to_x509_name coverage
    
    Check that attempting to quote an invalid character result in
    a error.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/tests/test-ssl-verify.c b/tests/test-ssl-verify.c
index e307e3f..f5c5881 100644
--- a/tests/test-ssl-verify.c
+++ b/tests/test-ssl-verify.c
@@ -126,6 +126,7 @@ int main(int argc, char *argv[])
     TEST_SUCCESS(quote2, "\\\\=a", "\\:a");
     TEST_SUCCESS(quote3, "a=\\,b,c=d", "a:,b:c:d");
     TEST_ERROR(quote4, ",", "");
+    TEST_ERROR(quote5, "a\\w=x", "");
 
     TEST_ERROR(no_value1, "a", "");
     TEST_ERROR(no_value2, "a,b=c", "");


More information about the Spice-commits mailing list