]>
git.saurik.com Git - apple/xnu.git/blob - tools/tests/perf_index/perfindex-file_read.c
1 #include "perf_index.h"
3 #include "test_file_helper.h"
7 char tempdir
[MAXPATHLEN
];
12 retval
= setup_tempdir(tempdir
);
14 VERIFY(retval
, "tempdir setup failed");
16 printf("tempdir: %s\n", tempdir
);
18 return test_file_read_setup(tempdir
, num_threads
, length
, 0L);
22 return test_file_read(tempdir
, thread_id
, num_threads
, length
, 0L);
28 retval
= test_file_read_cleanup(tempdir
, num_threads
, length
);
29 VERIFY(retval
== PERFINDEX_SUCCESS
, "test_file_read_cleanup failed");
31 retval
= cleanup_tempdir(tempdir
);
32 VERIFY(retval
== 0, "cleanup_tempdir failed");
34 return PERFINDEX_SUCCESS
;