Bump WARNS up to 6 again

Has not been tested (can't be after r312103 without cem's hacks
to atf/kyua)!
This commit is contained in:
Enji Cooper 2017-01-14 04:00:26 +00:00
parent 36b9e15c66
commit 02820e5e4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312109
2 changed files with 4 additions and 5 deletions

View File

@ -9,4 +9,6 @@ CFLAGS.lookup_cap_dotdot.c+= -I${SRCTOP}/tests
PLAIN_TESTS_SH+= trailing_slash
WARNS?= 6
.include <bsd.test.mk>

View File

@ -43,11 +43,11 @@ static int dirfd = -1;
static char *abspath;
static void
touchat(int dirfd, const char *name)
touchat(int _dirfd, const char *name)
{
int fd;
ATF_REQUIRE((fd = openat(dirfd, name, O_CREAT | O_TRUNC | O_WRONLY,
ATF_REQUIRE((fd = openat(_dirfd, name, O_CREAT | O_TRUNC | O_WRONLY,
0777)) >= 0);
ATF_REQUIRE(close(fd) == 0);
}
@ -117,7 +117,6 @@ ATF_TC_HEAD(lookup_cap_dotdot__basic, tc)
ATF_TC_BODY(lookup_cap_dotdot__basic, tc)
{
cap_rights_t rights;
int fd;
check_capsicum();
prepare_dotdot_tests();
@ -141,7 +140,6 @@ ATF_TC_HEAD(lookup_cap_dotdot__advanced, tc)
ATF_TC_BODY(lookup_cap_dotdot__advanced, tc)
{
cap_rights_t rights;
int fd;
check_capsicum();
prepare_dotdot_tests();
@ -220,7 +218,6 @@ ATF_TC_HEAD(lookup_cap_dotdot__negative, tc)
ATF_TC_BODY(lookup_cap_dotdot__negative, tc)
{
cap_rights_t rights;
int fd;
check_capsicum();
prepare_dotdot_tests();