X-Git-Url: https://git.saurik.com/apple/hfs.git/blobdiff_plain/7adaf79dc3954591b7b5257adb62451f47e2573d..4ec02d5c7ea2cbb45ce3725407590ab14cc10615:/tests/cases/test-throttled-io.c diff --git a/tests/cases/test-throttled-io.c b/tests/cases/test-throttled-io.c index 2d38181..2bf0c14 100644 --- a/tests/cases/test-throttled-io.c +++ b/tests/cases/test-throttled-io.c @@ -135,7 +135,6 @@ static void test2_thread(void) } while (!done); assert_no_err (close(fd)); - } static int run_test2(void) @@ -194,6 +193,7 @@ static bool clean_up(void) int run_throttled_io(__unused test_ctx_t *ctx) { + gDI = disk_image_get(); asprintf(&gFile1, "%s/throttled_io.1", gDI->mount_point); @@ -203,11 +203,11 @@ int run_throttled_io(__unused test_ctx_t *ctx) test_cleanup(^ bool { return clean_up(); }); - + int res = run_test1(); if (res) return res; - + res = run_test2(); if (res) return res;