Expect access_test:access_inval to fail before __FreeBSD_version == 1100033
This will allow me to MFC the test, as jilles@ requested that I don't MFC the access(2) KBI change to 10-STABLE in r271655
This commit is contained in:
parent
0dafa5cd4b
commit
3e4930b0a9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276430
@ -41,6 +41,7 @@ __RCSID("$NetBSD: t_access.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $");
|
||||
#include <atf-c.h>
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
@ -116,6 +117,10 @@ ATF_TC_HEAD(access_inval, tc)
|
||||
ATF_TC_BODY(access_inval, tc)
|
||||
{
|
||||
|
||||
#if defined(__FreeBSD__) && __FreeBSD_version < 1100033
|
||||
atf_tc_expect_fail("arguments to access aren't validated; see "
|
||||
"bug # 181155 for more details");
|
||||
#endif
|
||||
errno = 0;
|
||||
|
||||
ATF_REQUIRE(access("/usr", -1) != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user