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;
}
}
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);