mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
a121087069
commit
fa2201def5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297637
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue