]> git.saurik.com Git - apple/hfs.git/blobdiff - tests/cases/test-quotas.c
hfs-556.100.11.tar.gz
[apple/hfs.git] / tests / cases / test-quotas.c
index 8f9d77620fe63bcf91f2c07cbcbf6391bb8bbe8c..c6fa71fd25d40c6298d80c46a0ed8e12de70f100 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <TargetConditionals.h>
 
+#if !TARGET_OS_IPHONE
+
 #include <unistd.h>
 #include <stdio.h>
 #include <fcntl.h>
@@ -39,7 +41,7 @@ int run_quotas(__unused test_ctx_t *ctx)
 {
        disk_image_t *di = disk_image_create(QUOTA_DMG,
                                             &(disk_image_opts_t) {
-#if TARGET_OS_EMBEDDED
+#if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
                                                .mount_point = QUOTA_DMG_MOUNT_POINT,
 #endif
                                                .size = 64 * 1024 * 1024,
@@ -112,3 +114,4 @@ int run_quotas(__unused test_ctx_t *ctx)
 
        return 0;
 }
+#endif // !TARGET_OS_EMBEDDED