diff options
-rw-r--r-- | tests/mini-server-name.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mini-server-name.c b/tests/mini-server-name.c index 69d1c41bc1..8f8ed0b905 100644 --- a/tests/mini-server-name.c +++ b/tests/mini-server-name.c @@ -341,8 +341,10 @@ 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 /* test invalid UTF8 */ start("invalid-utf8", 1, "invalid\xff.example.com.", sizeof("invalid\xff.example.com")-1, NULL, 0); +#endif /* test embedded NULL */ start("embedded-NULL", 1, "invalid\x00.example.com.", sizeof("invalid\x00.example.com")-1, NULL, 0); } |