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/resume-dtls.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/resume-dtls.c')
-rw-r--r-- | tests/resume-dtls.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/resume-dtls.c b/tests/resume-dtls.c index aa28b747f0..65cf3c2ea5 100644 --- a/tests/resume-dtls.c +++ b/tests/resume-dtls.c @@ -29,6 +29,17 @@ #include <stdio.h> #include <stdlib.h> + +#if defined(_WIN32) + +int +main (int argc, char** argv) +{ + exit (77); +} + +#else + #include <string.h> #include <sys/types.h> #include <sys/socket.h> @@ -38,15 +49,6 @@ #include <unistd.h> #include <gnutls/gnutls.h> -#if defined(_WIN32) - -int main() -{ - exit(77); -} - -#else - #include "utils.h" static void wrap_db_init (void); @@ -626,4 +628,4 @@ wrap_db_delete (void *dbf, gnutls_datum_t key) } -#endif /* WIN32 */ +#endif /* _WIN32 */ |