diff options
author | Adam Sampson <ats@offog.org> | 2013-07-17 13:44:03 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-17 21:39:02 +0200 |
commit | 260f8de38d622af49d8077996ccc61f640eaebe8 (patch) | |
tree | c1cd7c1fb006f83a9b1db11aec2d8869d1a44187 /tests/anonself.c | |
parent | 147b72a1c1fc74f871194ac24a6b8635d4289849 (diff) | |
download | gnutls-260f8de38d622af49d8077996ccc61f640eaebe8.tar.gz |
Disable tests that use socketpair on _WIN32.
socketpair isn't provided on Windows, so these tests should just exit
77.
Note that resume-dtls.c already had a guard like this -- I've rewritten
it to match the others, but socketpair (presumably!) isn't the only
reason that test is disabled on Win32.
Signed-off-by: Adam Sampson <ats@offog.org>
Diffstat (limited to 'tests/anonself.c')
-rw-r--r-- | tests/anonself.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/anonself.c b/tests/anonself.c index c76e8ba3f9..843647164e 100644 --- a/tests/anonself.c +++ b/tests/anonself.c @@ -29,6 +29,18 @@ #include <stdio.h> #include <stdlib.h> + +#if defined(_WIN32) + +/* socketpair isn't supported on Win32. */ +int +main (int argc, char** argv) +{ + exit (77); +} + +#else + #include <string.h> #include <sys/types.h> #include <netinet/in.h> @@ -305,3 +317,5 @@ doit (void) else client (sockets[1]); } + +#endif /* _WIN32 */ |