]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/kqueue_file_tests.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / kqueue_file_tests.c
index 6293e16c82556cc56bc837cd14f3c07fb46f83a5..504b074d8f4184a467329f1e2732c8726b39aebb 100644 (file)
@@ -534,6 +534,7 @@ execute_test(test_t *test)
                                if ((filefd = open(test->t_watchfile, O_RDONLY | O_SYMLINK)) == -1) {
                                        T_LOG("open() of watchfile %s failed: %d (%s)\n", test->t_watchfile,
                                            errno, strerror(errno));
+                                       res = -1;
                                }
                        }
 
@@ -610,9 +611,6 @@ execute_test(test_t *test)
                                if (test->t_file_is_fifo) {
                                        close(writefd);
                                }
-                       } else {
-                               T_LOG("Couldn't open test file %s to monitor: %d (%s)\n", test->t_watchfile);
-                               res = -1;
                        }
                        if (!test->t_is_poll_test) {
                                close(kqfd);