summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-09 06:50:42 +0000
committerngie <ngie@FreeBSD.org>2015-11-09 06:50:42 +0000
commitbf233cc247b9545acd0eb9120cd5a2962a06fd0d (patch)
tree5156a14d761c546827529b1647dda5dd49dfb414 /contrib/netbsd-tests
parente81257014289b0a30dd6a411bd6b39283e641ed2 (diff)
downloadFreeBSD-src-bf233cc247b9545acd0eb9120cd5a2962a06fd0d.zip
FreeBSD-src-bf233cc247b9545acd0eb9120cd5a2962a06fd0d.tar.gz
MFC r289487:
Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as bin/dd/tests Ensure fdescfs is mounted on /dev/fd/ for the length testcase as it's used in validating the characters read from /dev/zero Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rwxr-xr-xcontrib/netbsd-tests/bin/dd/t_dd.sh6
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 \
OpenPOWER on IntegriCloud