X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/a991bd8d3e7fe02dbca0644054bab73c5b75324a..HEAD:/tests/kqueue_file_tests.c?ds=inline diff --git a/tests/kqueue_file_tests.c b/tests/kqueue_file_tests.c index 6293e16c8..504b074d8 100644 --- a/tests/kqueue_file_tests.c +++ b/tests/kqueue_file_tests.c @@ -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);