Expect tests/sys/fs/tmpfs/link_test:kqueue to fail

It fails with: "dir/b did not receive NOTE_LINK"

Also, add needed cleanup logic to cleanup the mountpoint after the fact

MFC after:	2 weeks
PR:		213662
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2016-10-21 05:21:20 +00:00
parent aa1a469bcd
commit def7fe87e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307701

View File

@ -93,7 +93,18 @@ subdirs_body() {
test_unmount
}
# Begin FreeBSD
if true; then
atf_test_case kqueue cleanup
kqueue_cleanup() {
Mount_Point=$(pwd)/mntpt test_unmount || :
}
else
# End FreeBSD
atf_test_case kqueue
# Begin FreeBSD
fi
# End FreeBSD
kqueue_head() {
atf_set "descr" "Verifies that creating a link raises the correct" \
"kqueue events"
@ -102,6 +113,10 @@ kqueue_head() {
kqueue_body() {
test_mount
# Begin FreeBSD
atf_expect_fail "fails with: dir/b did not receive NOTE_LINK - bug 213662"
# End FreeBSD
atf_check -s eq:0 -o empty -e empty mkdir dir
atf_check -s eq:0 -o empty -e empty touch dir/a
echo 'ln dir/a dir/b' | kqueue_monitor 2 dir dir/a