diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-04 16:20:44 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-05 08:54:52 +0200 |
commit | f6a3571318d7f9c1f1d4043e238dc6def0e63314 (patch) | |
tree | f6ab05d42bdd4986b57ed3ad490159e07570f44c /tests | |
parent | 13941a9c0dccbcea2023c13964b0501cc9dfdb31 (diff) | |
download | gnutls-f6a3571318d7f9c1f1d4043e238dc6def0e63314.tar.gz |
tests: skip tests which depend on libidn functionality if build without libidn
Diffstat (limited to 'tests')
-rw-r--r-- | tests/set_key_utf8.c | 3 | ||||
-rw-r--r-- | tests/set_x509_key_utf8.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/set_key_utf8.c b/tests/set_key_utf8.c index 23ee662c5e..adbb16aeaf 100644 --- a/tests/set_key_utf8.c +++ b/tests/set_key_utf8.c @@ -153,5 +153,8 @@ static void auto_parse(void) void doit(void) { +#ifndef HAVE_LIBIDN + exit(77); +#endif auto_parse(); } diff --git a/tests/set_x509_key_utf8.c b/tests/set_x509_key_utf8.c index a5452ffee9..496bd57c92 100644 --- a/tests/set_x509_key_utf8.c +++ b/tests/set_x509_key_utf8.c @@ -143,6 +143,10 @@ void doit(void) int ret; unsigned idx; +#ifndef HAVE_LIBIDN + exit(77); +#endif + /* this must be called once in the program */ global_init(); |