From c5f1eac219336e20c965836cf90af38e25a1dcbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1=D1?= =?UTF-8?q?=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Tue, 28 Dec 2010 03:43:08 +0300 Subject: [PATCH 1/5] Fix optimistic transport tests --- 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, 17 insertions(+), 10 deletions(-) diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index ef4f999..0865610 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 3da87d2..f51e96f 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 7fc9d43..de5079c 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) { -- 1.7.4