]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r309774,r309778,r309779,r309780:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2017 03:04:42 +0000 (03:04 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2017 03:04:42 +0000 (03:04 +0000)
commitb8dbf18acf65860a82b2e05f049df732ca4a45b6
tree39b91098c5cd5adcde1388228ae0786f3c4964db
parent5e257687bc2320152ecf9384a04b9c93b8e9a817
MFC r309774,r309778,r309779,r309780:

r309774:

Only run mdconfig -d -u 3 if /dev/md3 exists on the system

This will prevent "cleanup failures" (exit code != 0 returned) when
tmpfs is not loaded

r309778:

Make test_unmount usable in cleanup subroutines

- Duplicate test_unmount to _test_unmount
- Remove atf_check calls
- Call _test_unmount from test_unmount, checking the exit code
  at the end, and returning it to maintain the test_unmount
  "contract"

r309779:

- Ignore errors from umount
- Use _test_unmount instead of test_unmount in cleanup

r309780:

Use _test_unmount instead of test_unmount in cleanup to avoid
false positives with atf_check when tmpfs is not loaded, etc

git-svn-id: svn://svn.freebsd.org/base/stable/10@313518 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/fs/tmpfs/h_funcs.subr
contrib/netbsd-tests/fs/tmpfs/t_link.sh
contrib/netbsd-tests/fs/tmpfs/t_mount.sh
contrib/netbsd-tests/fs/tmpfs/t_remove.sh
contrib/netbsd-tests/fs/tmpfs/t_vnd.sh