mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Refactor test_getaddrinfo_async_cancel_stress()
Turns out it didn't need an event base set up. Spotted by clang's static anaylzer
This commit is contained in:
parent
65707d7c3c
commit
48c44a6dda
@ -1626,10 +1626,9 @@ gaic_launch(struct event_base *base, struct evdns_base *dns_base)
|
||||
}
|
||||
|
||||
static void
|
||||
test_getaddrinfo_async_cancel_stress(void *arg)
|
||||
test_getaddrinfo_async_cancel_stress(void *ptr)
|
||||
{
|
||||
struct basic_test_data *data = arg;
|
||||
struct event_base *base = data->base;
|
||||
struct event_base *base;
|
||||
struct evdns_base *dns_base = NULL;
|
||||
struct evdns_server_port *server = NULL;
|
||||
evutil_socket_t fd = -1;
|
||||
@ -1701,7 +1700,7 @@ struct testcase_t dns_testcases[] = {
|
||||
{ "getaddrinfo_async", test_getaddrinfo_async,
|
||||
TT_FORK|TT_NEED_BASE, &basic_setup, (char*)"" },
|
||||
{ "getaddrinfo_cancel_stress", test_getaddrinfo_async_cancel_stress,
|
||||
TT_FORK|TT_NEED_BASE, &basic_setup, (char*)"" },
|
||||
TT_FORK, NULL, NULL },
|
||||
|
||||
END_OF_TESTCASES
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user