]> git.saurik.com Git - apple/hfs.git/blobdiff - tests/cases/test-hard-links.m
hfs-556.100.11.tar.gz
[apple/hfs.git] / tests / cases / test-hard-links.m
index d38c669b223ef4639f28135af0ca16b5eda32755..d2a46a2947bf8d44fad7fc8f358f42b433370762 100644 (file)
@@ -112,7 +112,7 @@ static void run(void)
 
        assert_no_err(unlink(file2));
 
-#if !TARGET_OS_EMBEDDED
+#if !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
        // Same as the last sequence but with directory hard links
 
        assert_no_err(mkdir(dir1, 0777));
@@ -167,7 +167,7 @@ static void run(void)
                        ssize_t res;
                        do {
                                res = fsgetpath(path, sizeof(path), &sfs.f_fsid, (uint64_t)sb.st_ino);
-                       } while (res != -1 || errno == EAGAIN);
+                       } while (res != -1);
                        assert_with_errno(errno == ENOENT);
                });
 
@@ -224,7 +224,7 @@ static void run(void)
 
        assert(!systemx("/sbin/fsck_hfs", SYSTEMX_QUIET, "-ld", mut_vol_device, NULL));
 
-#endif
+#endif //!(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
 
        return;
 }