mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test-nss-hosts: treat negative host lookup as slow
The negative lookup can be quite slow. On my local network, skipping this test saves about half of the runtime of test-nss-hosts.
This commit is contained in:
@@ -451,7 +451,11 @@ static int parse_argv(int argc, char **argv,
|
||||
} else {
|
||||
_cleanup_free_ char *hostname = NULL;
|
||||
assert_se(hostname = gethostname_malloc());
|
||||
assert_se(names = strv_new("localhost", "_gateway", "_outbound", "foo_no_such_host", hostname));
|
||||
assert_se(names = strv_new("localhost",
|
||||
"_gateway",
|
||||
"_outbound",
|
||||
hostname,
|
||||
slow_tests_enabled() ? "foo_no_such_host" : NULL));
|
||||
|
||||
n = make_addresses(&addrs);
|
||||
assert_se(n >= 0);
|
||||
|
||||
Reference in New Issue
Block a user