mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 14:54:49 -04:00
Remove deadcode in http regression tests. Found by coverity.
This commit is contained in:
parent
11c8b31754
commit
555334670a
@ -892,7 +892,6 @@ _http_connection_test(struct basic_test_data *data, int persistent)
|
|||||||
/* We give ownership of the request to the connection */
|
/* We give ownership of the request to the connection */
|
||||||
if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
|
if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
|
||||||
tt_abort_msg("Couldn't make request");
|
tt_abort_msg("Couldn't make request");
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
event_base_dispatch(data->base);
|
event_base_dispatch(data->base);
|
||||||
@ -1001,7 +1000,6 @@ http_connection_async_test(void *arg)
|
|||||||
/* We give ownership of the request to the connection */
|
/* We give ownership of the request to the connection */
|
||||||
if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
|
if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
|
||||||
tt_abort_msg("Couldn't make request");
|
tt_abort_msg("Couldn't make request");
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
event_base_dispatch(data->base);
|
event_base_dispatch(data->base);
|
||||||
@ -1844,7 +1842,6 @@ _http_close_detection(struct basic_test_data *data, int with_delay)
|
|||||||
if (evhttp_make_request(evcon,
|
if (evhttp_make_request(evcon,
|
||||||
req, EVHTTP_REQ_GET, with_delay ? "/largedelay" : "/test") == -1) {
|
req, EVHTTP_REQ_GET, with_delay ? "/largedelay" : "/test") == -1) {
|
||||||
tt_abort_msg("couldn't make request");
|
tt_abort_msg("couldn't make request");
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
event_base_dispatch(data->base);
|
event_base_dispatch(data->base);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user