svn commit: r307204 - head/contrib/netbsd-tests/fs/tmpfs

Ngie Cooper ngie at FreeBSD.org
Thu Oct 13 08:27:21 UTC 2016


Author: ngie
Date: Thu Oct 13 08:27:19 2016
New Revision: 307204
URL: https://svnweb.freebsd.org/changeset/base/307204

Log:
  Expect :large to fail on FreeBSD
  
  FreeBSD doesn't appear to validate large -o size values like
  NetBSD does
  
  MFC after:	2 weeks
  PR:		212862
  Sponsored by:	Dell EMC Isilon

Modified:
  head/contrib/netbsd-tests/fs/tmpfs/t_mount.sh

Modified: head/contrib/netbsd-tests/fs/tmpfs/t_mount.sh
==============================================================================
--- head/contrib/netbsd-tests/fs/tmpfs/t_mount.sh	Thu Oct 13 08:09:40 2016	(r307203)
+++ head/contrib/netbsd-tests/fs/tmpfs/t_mount.sh	Thu Oct 13 08:27:19 2016	(r307204)
@@ -93,7 +93,18 @@ negative_body() {
 	test_unmount
 }
 
+# Begin FreeBSD
+if true; then
+atf_test_case large cleanup
+large_cleanup() {
+	umount -f tmp 2>/dev/null
+}
+else
+# End FreeBSD
 atf_test_case large
+# Begin FreeBSD
+fi
+# End FreeBSD
 large_head() {
 	atf_set "descr" "Tests that extremely long values passed to -s" \
 	                "are handled correctly"
@@ -103,6 +114,10 @@ large_body() {
 	test_mount -o -s9223372036854775807
 	test_unmount
 
+	# Begin FreeBSD
+	atf_expect_fail "-o -s<large-size> succeeds unexpectedly on FreeBSD - bug 212862"
+	# End FreeBSD
+
 	mkdir tmp
 	atf_check -s eq:1 -o empty -e ignore \
 	    mount -t tmpfs -o -s9223372036854775808 tmpfs tmp


More information about the svn-src-all mailing list