freebsd-dev/tests/sys/file
Mark Johnston 333f668468 path_test: Correct the kevent test
Perhaps surprisingly, and contrary to the expectations of
path_test:path_event, NOTE_LINK events are not raised when a file is
unlinked.  Prior to commit bf13db086b, the test happened to work
because unlinking the file would cause the vnode to be recycled, and
EVFILT_VNODE knotes deliver an event with EV_EOF set when the vnode is
doomed.  Since the test did not verify the note type, the test
succeeded.  After commit bf13db086b, the vnode is not recycled after
being unlinked and so the test hangs.

Fix the test by waiting for NOTE_DELETE instead, and check that we got
the note that we expected.

Reported by:	Jenkins
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2022-04-18 11:45:45 -04:00
..
closefrom_test.c tests: Fix the test plan for closefrom_test 2022-03-06 12:57:40 -05:00
dup_test.c Revert r337929 2018-08-16 22:04:00 +00:00
fcntlflags_test.c
flock_helper.c Revert r337929 2018-08-16 22:04:00 +00:00
flock_test.sh Make test scripts under tests/... non-executable 2017-08-08 04:59:16 +00:00
fspacectl_test.c Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
ftruncate_test.c Tweak r319058 slightly 2017-05-28 17:50:29 +00:00
Makefile Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
newfileops_on_fork_test.c Allow changing the test PORT at compile-time. 2017-07-31 22:00:27 +00:00
path_test.c path_test: Correct the kevent test 2022-04-18 11:45:45 -04:00