aboutsummaryrefslogtreecommitdiff
path: root/tests/sockets/test_sockets_bigdata.h
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-08-07 14:07:43 -0700
committerAnthony Pesch <inolen@gmail.com>2013-08-07 20:38:55 -0700
commit337817bf6c153f7cc2441c67dbc67ba510ed6b45 (patch)
treea8a44e10c5128906644f0d39f13f8eb8a15e9c66 /tests/sockets/test_sockets_bigdata.h
parentaccadc7759ca6e3690749417ef7d26d443bea5f7 (diff)
renamed socket tests
Diffstat (limited to 'tests/sockets/test_sockets_bigdata.h')
-rw-r--r--tests/sockets/test_sockets_bigdata.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/sockets/test_sockets_bigdata.h b/tests/sockets/test_sockets_bigdata.h
new file mode 100644
index 00000000..17149ad6
--- /dev/null
+++ b/tests/sockets/test_sockets_bigdata.h
@@ -0,0 +1,20 @@
+
+#include <stdlib.h>
+
+#define DATA_SIZE (256*256*2)
+// 1500 fails
+
+char *generateData() {
+ char *ret = malloc(256*256*2);
+ char *curr = ret;
+ for (int i = 0; i < 256; i++) {
+ for (int j = 0; j < 256; j++) {
+ *curr = i;
+ curr++;
+ *curr = j;
+ curr++;
+ }
+ }
+ return ret;
+}
+