diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-19 15:36:21 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-09-19 19:06:45 +0200 |
commit | 6d507f38798ae0b201d45050e127f1131b8261f5 (patch) | |
tree | a7a77169ac4e0fa746ab20e666c05681091896c9 /tests/mini-server-name.c | |
parent | e4b0eb1975e4ac76c5cfff622f254cf16dcdfc33 (diff) | |
download | gnutls-6d507f38798ae0b201d45050e127f1131b8261f5.tar.gz |
tests: mini-server-name: skip invalid UTF-8 check if compiled without libidntmp-test-macros
This allows the test suite to run in systems without libidn. Reported
by Thomas Klausner.
Diffstat (limited to 'tests/mini-server-name.c')
-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); } |