tests: fix remaining test failures under _FORTIFY_SOURCE
The getgroups test is a NetBSD tests, so just apply our larger hammer and disable the feature entirely. The audit test can take a more surgical approach and use __ssp_real() appropriately, since it's a local one. PR: 294881 Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D56735
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#include <sys/uio.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include <ssp/ssp.h>
|
||||
|
||||
#include <atf-c.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdarg.h>
|
||||
@@ -959,7 +961,7 @@ ATF_TC_BODY(recvmsg_failure, tc)
|
||||
snprintf(extregex, sizeof(extregex),
|
||||
"recvmsg.*return,failure : Bad address");
|
||||
FILE *pipefd = setup(fds, auclass);
|
||||
ATF_REQUIRE_EQ(-1, recvmsg(-1, NULL, 0));
|
||||
ATF_REQUIRE_EQ(-1, __ssp_real(recvmsg)(-1, NULL, 0));
|
||||
check_audit(fds, extregex, pipefd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user