Use _SED to rewrite mknod ... p command as mkfifo instead of

adding an unnecessary diff to the test
This commit is contained in:
Enji Cooper 2017-01-16 17:49:53 +00:00
parent 3b0a9131e6
commit 267f10b14c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312297
2 changed files with 1 additions and 8 deletions

View File

@ -59,15 +59,7 @@ types_body() {
atf_check -s eq:0 -o empty -e empty ln -s reg lnk
atf_check -s eq:0 -o empty -e empty mknod blk b 0 0
atf_check -s eq:0 -o empty -e empty mknod chr c 0 0
# Begin FreeBSD
if true; then
atf_check -s eq:0 -o empty -e empty mkfifo fifo
else
# End FreeBSD
atf_check -s eq:0 -o empty -e empty mknod fifo p
# Begin FreeBSD
fi
# End FreeBSD
atf_check -s eq:0 -o empty -e empty \
$(atf_get_srcdir)/h_tools sockets sock

View File

@ -47,6 +47,7 @@ ATF_TESTS_SH_SED_mount_test= \
-e 's,-o -s,-o size=,g' \
-e 's,-o -u,-o uid=,g' \
-e 's,mount_${FILESYSTEM},mount -t ${FILESYSTEM},g'
ATF_TESTS_SH_SED_readdir_test= -e 's,mknod fifo p,mkfifo fifo,g'
ATF_TESTS_SH_SED_sizes_test= -e 's,-o -s,-o size=,g'
ATF_TESTS_SH_SED_statvfs_test= -e 's,-o -s,-o size=,g'
ATF_TESTS_SH_SED_vnode_leak_test= -e 's,-o -s,-o size=,g'