mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
tests: Require allow_network_access for tests needing name resolution
Tests that require working name resolution or network access now mandate that the kuya variable allow_network_access be set. PR: 285826 Reported by: ngie Reviewed by: igoro Approved by: lwhsu Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D49633
This commit is contained in:
1 parent
fe9278888f
commit
c10fd9ac00
1 file changed
+11
-2
@@ -79,7 +79,12 @@ send(int s, const void *msg, size_t len, int flags)
|
||||
}
|
||||
}
|
||||
|
||||
ATF_TC_WITHOUT_HEAD(basic);
|
||||
ATF_TC(basic);
|
||||
ATF_TC_HEAD(basic, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "require.config", "allow_network_access");
|
||||
}
|
||||
|
||||
ATF_TC_BODY(basic, tc)
|
||||
{
|
||||
static const struct addrinfo hints = {
|
||||
@@ -205,7 +210,11 @@ ATF_TC_BODY(netdown, tc)
|
||||
/*
|
||||
* See https://reviews.freebsd.org/D37139.
|
||||
*/
|
||||
ATF_TC_WITHOUT_HEAD(nofamily);
|
||||
ATF_TC(nofamily);
|
||||
ATF_TC_HEAD(nofamily, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "require.config", "allow_network_access");
|
||||
}
|
||||
ATF_TC_BODY(nofamily, tc)
|
||||
{
|
||||
static const struct addrinfo hints4 = {
|
||||
|
||||
Reference in new issue
Block a user