svn commit: r298019 - stable/10/contrib/netbsd-tests/lib/libc/sys

Garrett Cooper ngie at FreeBSD.org
Fri Apr 15 01:20:15 UTC 2016


Author: ngie
Date: Fri Apr 15 01:20:14 2016
New Revision: 298019
URL: https://svnweb.freebsd.org/changeset/base/298019

Log:
  MFC r297637:
  
  Disable the NetBSD-specific EFAULT requirements test in gettimeofday_err
  
  FreeBSD doesn't specifically list this as a supported error, and in some
  configurations/versions of FreeBSD, this test will segfault as the memory
  address might be evaluated in userspace, instead of in kernel space like
  in NetBSD.

Modified:
  stable/10/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c	Fri Apr 15 00:47:30 2016	(r298018)
+++ stable/10/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c	Fri Apr 15 01:20:14 2016	(r298019)
@@ -46,9 +46,11 @@ ATF_TC_HEAD(gettimeofday_err, tc)
 ATF_TC_BODY(gettimeofday_err, tc)
 {
 
+#ifdef __NetBSD__
 	errno = 0;
 
 	ATF_REQUIRE_ERRNO(EFAULT, gettimeofday((void *)-1, NULL) != 0);
+#endif
 }
 
 ATF_TC(gettimeofday_mono);


More information about the svn-src-stable-10 mailing list