diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-14 17:02:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-14 17:02:12 +0000 |
commit | cf62227ad0ddd34dd376ca1f6b6a63aa9f80e141 (patch) | |
tree | 8732ce2e3ea3fb03ab6e1e8c0487c2160ac30495 | |
parent | e212a55e1caf1d9fccf1aaf48c10006228fb5ec1 (diff) | |
download | gnunet-cf62227ad0ddd34dd376ca1f6b6a63aa9f80e141.tar.gz gnunet-cf62227ad0ddd34dd376ca1f6b6a63aa9f80e141.zip |
only do small messages on non-Linux UNIX domain socket tests
-rw-r--r-- | src/transport/test_transport_api_unreliability.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index 3077eaae6..a7e362b28 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c | |||
@@ -226,6 +226,14 @@ get_size (unsigned int iter) | |||
226 | unsigned int ret; | 226 | unsigned int ret; |
227 | 227 | ||
228 | ret = (iter * iter * iter); | 228 | ret = (iter * iter * iter); |
229 | |||
230 | #ifndef LINUX | ||
231 | /* FreeBSD/OSX etc. Unix DGRAMs do not work | ||
232 | with large messages */ | ||
233 | if (0 == strcmp ("unix", | ||
234 | test_plugin)) | ||
235 | return sizeof (struct TestMessage) + (ret % 1024); | ||
236 | #endif | ||
229 | return sizeof (struct TestMessage) + (ret % 60000); | 237 | return sizeof (struct TestMessage) + (ret % 60000); |
230 | } | 238 | } |
231 | 239 | ||