diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-04 14:01:36 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-04 23:48:37 +0100 |
commit | 90deae35fed78b5c617489e1dfc9506181b27d4b (patch) | |
tree | 88750027aa72838547b34076cb30d1b512f0eb26 /tests/mini-server-name.c | |
parent | 35bb9d4bc9f66293cd75cb405d5af3b291054e1f (diff) | |
download | gnutls-90deae35fed78b5c617489e1dfc9506181b27d4b.tar.gz |
tests: enable all IDNA tests when compiled with libidn2
Keep IDNA2003-only tests on the ifdef HAVE_LIBIDN.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/mini-server-name.c')
-rw-r--r-- | tests/mini-server-name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mini-server-name.c b/tests/mini-server-name.c index 8f8ed0b905..ae7bb185a5 100644 --- a/tests/mini-server-name.c +++ b/tests/mini-server-name.c @@ -341,7 +341,7 @@ void doit(void) start("empty", 0, "", 0, "", 0); start("test.example.com", 0, "test.example.com", strlen("test.example.com"), "test.example.com", strlen("test.example.com")); start("longtest.example.com", 0, "longtest.example.com.", strlen("longtest.example.com"), "longtest.example.com.", strlen("longtest.example.com")); -#ifdef HAVE_LIBIDN +#if defined(HAVE_LIBIDN) || defined(HAVE_LIBIDN2) /* test invalid UTF8 */ start("invalid-utf8", 1, "invalid\xff.example.com.", sizeof("invalid\xff.example.com")-1, NULL, 0); #endif |