svn commit: r273396 - head/contrib/netbsd-tests/lib/libc/sys

Garrett Cooper ngie at FreeBSD.org
Tue Oct 21 18:06:05 UTC 2014


Author: ngie
Date: Tue Oct 21 18:06:04 2014
New Revision: 273396
URL: https://svnweb.freebsd.org/changeset/base/273396

Log:
  unlink("/") fails with EISDIR instead of EBUSY on FreeBSD; test for that
  instead
  
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_unlink.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_unlink.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_unlink.c	Tue Oct 21 18:01:37 2014	(r273395)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_unlink.c	Tue Oct 21 18:06:04 2014	(r273396)
@@ -85,7 +85,11 @@ ATF_TC_BODY(unlink_err, tc)
 	(void)memset(buf, 'x', sizeof(buf));
 
 	errno = 0;
+#if defined(__FreeBSD__)
+	ATF_REQUIRE_ERRNO(EISDIR, unlink("/") == -1);
+#else
 	ATF_REQUIRE_ERRNO(EBUSY, unlink("/") == -1);
+#endif
 
 	errno = 0;
 	ATF_REQUIRE_ERRNO(ENAMETOOLONG, unlink(buf) == -1);


More information about the svn-src-head mailing list