X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2Fmemcpy.c;h=a552134357131e2e2438deb44764fc61b6ec06be;hb=14060ebb90ce5a0a164d0e5e52c13e31b53b282d;hp=00e65aa7d50a8e915d66935e28633d64bd24c81a;hpb=358ffaa6c37acb26e0f507934ba8a6f98f34ffee;p=fio.git diff --git a/lib/memcpy.c b/lib/memcpy.c index 00e65aa7..a5521343 100644 --- a/lib/memcpy.c +++ b/lib/memcpy.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -6,7 +7,7 @@ #include "rand.h" #include "../fio_time.h" #include "../gettime.h" -#include "../fio.h" +#include "../os/os.h" #define BUF_SIZE 32 * 1024 * 1024ULL @@ -200,6 +201,9 @@ static int setup_tests(void) void *src, *dst; int i; + if (!tests[0].name) + return 0; + src = malloc(BUF_SIZE); dst = malloc(BUF_SIZE); if (!src || !dst) {