From 37ffba0e788aa5bad59503b1378d13780976b14e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Jun 2011 18:58:19 +0000 Subject: [PATCH] mantis 1718 --- src/transport/test_quota_compliance.c | 9 ++++++--- src/transport/test_transport_api.c | 12 +++++++++--- src/transport/test_transport_api_reliability.c | 3 --- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index ef4f999be..086561095 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c @@ -800,12 +800,12 @@ int main (int argc, char *argv[]) { int ret = 0; -#ifdef MINGW - return GNUNET_SYSERR; -#endif if (strstr(argv[0], "tcp_nat") != NULL) { is_tcp_nat = GNUNET_YES; +#ifdef MINGW + return 0; +#endif } else if (strstr(argv[0], "tcp") != NULL) { @@ -814,6 +814,9 @@ main (int argc, char *argv[]) else if (strstr(argv[0], "https") != NULL) { is_https = GNUNET_YES; +#ifdef MINGW + return 0; +#endif } else if (strstr(argv[0], "http") != NULL) { diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index 3da87d2c8..f51e96ff2 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c @@ -656,9 +656,6 @@ int main (int argc, char *argv[]) { int ret; -#ifdef MINGW - return GNUNET_SYSERR; -#endif GNUNET_log_setup ("test-transport-api", #if VERBOSE @@ -671,6 +668,9 @@ main (int argc, char *argv[]) if (strstr(argv[0], "tcp_nat") != NULL) { is_tcp_nat = GNUNET_YES; +#ifdef MINGW + return 0; +#endif if (GNUNET_YES != check_gnunet_nat_binary("gnunet-nat-server")) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, @@ -686,6 +686,9 @@ main (int argc, char *argv[]) else if (strstr(argv[0], "udp_nat") != NULL) { is_udp_nat = GNUNET_YES; +#ifdef MINGW + return 0; +#endif if (GNUNET_YES != check_gnunet_nat_binary("gnunet-nat-server")) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, @@ -705,6 +708,9 @@ main (int argc, char *argv[]) else if (strstr(argv[0], "https") != NULL) { is_https = GNUNET_YES; +#ifdef MINGW + return 0; +#endif } else if (strstr(argv[0], "http") != NULL) { diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index 7fc9d43b4..de5079c4f 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c @@ -840,9 +840,6 @@ int main (int argc, char *argv[]) { int ret; -#ifdef MINGW - return GNUNET_SYSERR; -#endif if (strstr(argv[0], "tcp_nat") != NULL) { -- 2.25.1