mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-07 11:32:59 +00:00
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@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
fce4486755
commit
387d1842d1
@ -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", "");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user