diff --git a/linux/tests/test-max-data.c b/linux/tests/test-max-data.c index de9cc5ce39f..414b681d63d 100644 --- a/linux/tests/test-max-data.c +++ b/linux/tests/test-max-data.c @@ -4,12 +4,38 @@ #include #include #include +#include +#include #include "toku_os.h" -int main(void) { +int main(int argc, char *argv[]) { + int verbose = 0; + int i; + for (i=1; i (1ULL << 32)); +#elif __WORDSIZE == 32 + assert(maxdata < (1ULL << 32)); +#else +#error +#endif + return 0; } diff --git a/linux/tests/test-wss.c b/linux/tests/test-wss.c index 94f013b9cb7..78fe6dbf7ba 100644 --- a/linux/tests/test-wss.c +++ b/linux/tests/test-wss.c @@ -6,23 +6,40 @@ #include #include +const int nbuffers = 1000; +const int buffersize = 1024*1024; + static void do_mallocs(void) { int i; - for (i=0; i<1000; i++) { - int nbytes = 1024*1024; + for (i=0; i nbuffers*buffersize); return 0; }