summaryrefslogtreecommitdiff
path: root/tests/mini-loss-time.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-11 20:35:08 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-11 20:35:08 +0100
commit82efb9248346a2faa005c758bd9ac1da0250b3a4 (patch)
treec49808607ebaa0984eca80401155e501511d3f70 /tests/mini-loss-time.c
parent943d467c705725c77be192067f5668ea133c84d1 (diff)
downloadgnutls-82efb9248346a2faa005c758bd9ac1da0250b3a4.tar.gz
tests with fork are disabled in windows
Diffstat (limited to 'tests/mini-loss-time.c')
-rw-r--r--tests/mini-loss-time.c14
1 files changed, 12 insertions, 2 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 */