void *src, *dst;
int i;
- if (posix_memalign(&src, page_size, BUF_SIZE))
- return 1;
- if (posix_memalign(&dst, page_size, BUF_SIZE))
+ src = malloc(BUF_SIZE);
+ dst = malloc(BUF_SIZE);
+ if (!src || !dst)
return 1;
init_rand_seed(&state, 0x8989, 0);
return 0;
}
+static void free_tests(void)
+{
+ free(tests[0].src);
+ free(tests[0].dst);
+}
+
int fio_memcpy_test(const char *type)
{
unsigned int test_mask = 0;
}
}
+ free_tests();
return 0;
}