Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2016 01:20:14 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r298019 - stable/10/contrib/netbsd-tests/lib/libc/sys
Message-ID:  <201604150120.u3F1KEQl015137@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604150120.u3F1KEQl015137>