[Spice-devel] [PATCH spice-common] test-ssl-verify: Improve subject_to_x509_name coverage

Christophe Fergeau cfergeau at redhat.com
Wed Mar 13 17:19:47 UTC 2019


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Wed, Mar 13, 2019 at 12:20:22PM +0000, Frediano Ziglio wrote:
> Check that attempting to quote an invalid character result in
> a error.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  tests/test-ssl-verify.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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", "");
> -- 
> 2.20.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190313/8dbde590/attachment.sig>


More information about the Spice-devel mailing list