author | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-04-10 13:52:18 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-04-12 13:51:04 UTC |
parent | 8c3580e1b7c148d382e12c89b516397a78a938c0 |
tests/performance/performance.c | +2 | -0 |
tests/performance/random.c | +2 | -0 |
diff --git a/tests/performance/performance.c b/tests/performance/performance.c index 47f1965..199865a 100644 --- a/tests/performance/performance.c +++ b/tests/performance/performance.c @@ -15,6 +15,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <sys/time.h> +#include <string.h> #include <libjio.h> #define FILENAME "test_file" @@ -53,6 +54,7 @@ static void *worker(void *tno) perror("malloc()"); return NULL; } + memset(buf, 5, blocksize); work_done = 0; diff --git a/tests/performance/random.c b/tests/performance/random.c index 4af4bed..a788ddc 100644 --- a/tests/performance/random.c +++ b/tests/performance/random.c @@ -15,6 +15,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <sys/time.h> +#include <string.h> #include <libjio.h> #define FILENAME "test_file" @@ -53,6 +54,7 @@ static void *worker(void *tno) perror("malloc()"); return NULL; } + memset(buf, 5, blocksize); work_done = 0;