11 #define TEST_ASSERT_VAL(text, cond) \
14 pr_debug("FAILED %s:%d %s\n", __FILE__, __LINE__, text); \
19 static char *test_file(
int size)
21 static char buf_templ[] =
"/tmp/test-XXXXXX";
22 char *templ = buf_templ;
34 for (i = 0; i <
size; i++)
35 buf[i] = (
unsigned char) ((
int) i % 10);
37 if (size !=
write(fd, buf, size))
44 #define TEST_FILE_SIZE (DSO__DATA_CACHE_SIZE * 20)
56 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
62 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
68 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
74 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
80 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
86 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
92 .data = { 7, 8, 9, 0, 0, 0, 0, 0, 0, 0 },
106 memset(&machine, 0,
sizeof(machine));
134 for (c = 0; c < 2; c++) {
142 for (i = 0; i < (
size_t)size; i++)