]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/perf_index/perfindex-ram_file_read.c
xnu-6153.11.26.tar.gz
[apple/xnu.git] / tools / tests / perf_index / perfindex-ram_file_read.c
index e547cec42f66e7104d9a48d9f993c0fa35e809d9..10e804d7f21bc5c3fe1a7ddfe0dcbdc1610fce21 100644 (file)
@@ -9,28 +9,28 @@ const char ramdisk_name[] = "StressRAMDisk";
 char ramdisk_path[MAXPATHLEN];
 
 DECL_SETUP {
-    int retval;
+       int retval;
 
-    retval = setup_ram_volume(ramdisk_name, ramdisk_path);
-    VERIFY(retval == PERFINDEX_SUCCESS, "setup_ram_volume failed");
+       retval = setup_ram_volume(ramdisk_name, ramdisk_path);
+       VERIFY(retval == PERFINDEX_SUCCESS, "setup_ram_volume failed");
 
-    printf("ramdisk: %s\n", ramdisk_path);
+       printf("ramdisk: %s\n", ramdisk_path);
 
-    return test_file_read_setup(ramdisk_path, num_threads, length, 0L);
+       return test_file_read_setup(ramdisk_path, num_threads, length, 0L);
 }
 
 DECL_TEST {
-    return test_file_read(ramdisk_path, thread_id, num_threads, length, 0L);
+       return test_file_read(ramdisk_path, thread_id, num_threads, length, 0L);
 }
 
 DECL_CLEANUP {
-    int retval;
+       int retval;
 
-    retval = test_file_read_cleanup(ramdisk_path, num_threads, length);
-    VERIFY(retval == PERFINDEX_SUCCESS, "test_file_read_cleanup failed");
+       retval = test_file_read_cleanup(ramdisk_path, num_threads, length);
+       VERIFY(retval == PERFINDEX_SUCCESS, "test_file_read_cleanup failed");
 
-    retval = cleanup_ram_volume(ramdisk_path);
-    VERIFY(retval == 0, "cleanup_ram_volume failed");
+       retval = cleanup_ram_volume(ramdisk_path);
+       VERIFY(retval == 0, "cleanup_ram_volume failed");
 
-    return PERFINDEX_SUCCESS;
+       return PERFINDEX_SUCCESS;
 }