only do small messages on non-Linux UNIX domain socket tests
authorChristian Grothoff <christian@grothoff.org>
Mon, 14 Nov 2011 17:02:12 +0000 (17:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 14 Nov 2011 17:02:12 +0000 (17:02 +0000)
src/transport/test_transport_api_unreliability.c

index 3077eaae620e18576658b3aa0e13456bbff75503..a7e362b28788174e59d2c84c237c3872cb8c06bb 100644 (file)
@@ -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);
 }