diff options
Diffstat (limited to 'tests/sockets/test_sockets_bigdata.h')
-rw-r--r-- | tests/sockets/test_sockets_bigdata.h | 20 |
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; +} + |