Somehow fstests from src/regress were broken. Patch fix creation of temporary files and add mark test target as required root permissions. Ok?
Was: 3053 tests completed, 2738 failed. Now: 3053 tests completed, 275 failed. Another failes connected to abcense of syscalls (lchflags), abcense of flags for chflags (like SF_SNAPSHOT). Do we need to remove such tests? P.S. pjd@ test source tree differs from OpenBSD test for at least tests with ftruncate - https://github.com/pjd/pjdfstest Is it worth to add absent tests? Sergey B. Index: Makefile =================================================================== RCS file: /cvs/src/regress/sys/ffs/Makefile,v retrieving revision 1.4 diff -u -p -u -r1.4 Makefile --- Makefile 18 Apr 2011 16:52:11 -0000 1.4 +++ Makefile 16 Mar 2014 07:52:23 -0000 @@ -2,6 +2,8 @@ PROG= fstest +REGRESS_ROOT_TARGETS= run-regress-fstest + mount: dd if=/dev/zero of=${.CURDIR}/fakeobj bs=512 count=4k vnconfig vnd0 ${.CURDIR}/fakeobj Index: run =================================================================== RCS file: /cvs/src/regress/sys/ffs/run,v retrieving revision 1.1 diff -u -p -u -r1.1 run --- run 30 Mar 2007 19:02:51 -0000 1.1 +++ run 16 Mar 2014 07:52:23 -0000 @@ -45,7 +45,7 @@ test_check() # Generate a random file/directory name. namegen() { - echo "fstest_`dd if=/dev/urandom bs=1k count=1 2>/dev/null | openssl md5`" + echo "fstest_`dd if=/dev/urandom bs=1k count=1 2>/dev/null | openssl md5 | awk '{ print $2 }'`" } for arg in $*; do