diff options
author | ngie <ngie@FreeBSD.org> | 2015-10-18 05:25:51 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-10-18 05:25:51 +0000 |
commit | 5df1a219f1a344ce0427fc63a47867b2ba37721f (patch) | |
tree | e5ddac66046f8a21fa12c255f84e4f50e2ab3920 /contrib/netbsd-tests | |
parent | bae0f45cc488c4da58e0d394200527044d69681a (diff) | |
download | FreeBSD-src-5df1a219f1a344ce0427fc63a47867b2ba37721f.zip FreeBSD-src-5df1a219f1a344ce0427fc63a47867b2ba37721f.tar.gz |
Ensure fdescfs is mounted on /dev/fd/ in the length testcase
Diffstat (limited to 'contrib/netbsd-tests')
-rwxr-xr-x | contrib/netbsd-tests/bin/dd/t_dd.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/bin/dd/t_dd.sh b/contrib/netbsd-tests/bin/dd/t_dd.sh index d713ad9..62379c2 100755 --- a/contrib/netbsd-tests/bin/dd/t_dd.sh +++ b/contrib/netbsd-tests/bin/dd/t_dd.sh @@ -44,6 +44,12 @@ length_head() { "the one expected to fail. (NetBSD PR bin/8521)" } length_body() { + # Begin FreeBSD + if ! df /dev/fd | grep -q '^fdescfs'; then + atf_skip "fdescfs is not mounted on /dev/fd" + fi + # End FreeBSD + test_dd_length 512 \ "dd if=/dev/zero of=/dev/fd/5 count=1 5>&1 >/dev/null 2>/dev/null" test_dd_length 512 \ |