summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-14 17:02:12 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-14 17:02:12 +0000
commitcf62227ad0ddd34dd376ca1f6b6a63aa9f80e141 (patch)
tree8732ce2e3ea3fb03ab6e1e8c0487c2160ac30495 /src
parente212a55e1caf1d9fccf1aaf48c10006228fb5ec1 (diff)
only do small messages on non-Linux UNIX domain socket tests
Diffstat (limited to 'src')
-rw-r--r--src/transport/test_transport_api_unreliability.c8
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)
unsigned int ret;
ret = (iter * iter * iter);
+
+#ifndef LINUX
+ /* FreeBSD/OSX etc. Unix DGRAMs do not work
+ with large messages */
+ if (0 == strcmp ("unix",
+ test_plugin))
+ return sizeof (struct TestMessage) + (ret % 1024);
+#endif
return sizeof (struct TestMessage) + (ret % 60000);
}