diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-11 20:35:08 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-11 20:35:08 +0100 |
commit | 82efb9248346a2faa005c758bd9ac1da0250b3a4 (patch) | |
tree | c49808607ebaa0984eca80401155e501511d3f70 /tests | |
parent | 943d467c705725c77be192067f5668ea133c84d1 (diff) | |
download | gnutls-82efb9248346a2faa005c758bd9ac1da0250b3a4.tar.gz |
tests with fork are disabled in windows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mini-loss-time.c | 14 | ||||
-rw-r--r-- | tests/mini-loss.c | 14 |
2 files changed, 24 insertions, 4 deletions
diff --git a/tests/mini-loss-time.c b/tests/mini-loss-time.c index 37e1cd8563..f1aa3e4da9 100644 --- a/tests/mini-loss-time.c +++ b/tests/mini-loss-time.c @@ -27,13 +27,21 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> + +#if defined(_WIN32) + +int main() +{ + exit(77); +} + +#else + #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> -#if !defined(_WIN32) #include <sys/wait.h> #include <arpa/inet.h> -#endif #include <unistd.h> #include <gnutls/gnutls.h> #include <gnutls/dtls.h> @@ -294,3 +302,5 @@ time_t tstart, tstop; if (!(tstop < 70 && tstop > 55)) fail("Time difference: %u\n", (unsigned)tstop); } + +#endif /* _WIN32 */ diff --git a/tests/mini-loss.c b/tests/mini-loss.c index be8b8fec42..a541c29638 100644 --- a/tests/mini-loss.c +++ b/tests/mini-loss.c @@ -26,14 +26,22 @@ #include <stdio.h> #include <stdlib.h> + +#if defined(_WIN32) + +int main() +{ + exit(77); +} + +#else + #include <string.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> -#if !defined(_WIN32) #include <sys/wait.h> #include <arpa/inet.h> -#endif #include <unistd.h> #include <gnutls/gnutls.h> #include <gnutls/dtls.h> @@ -393,3 +401,5 @@ doit (void) start(4, -1); start(5, -1); } + +#endif /* _WIN32 */ |