test: fix 'incompatible pointer types' warnings
Refs: https://github.com/libuv/libuv/pull/2686 PR-URL: https://github.com/libuv/libuv/pull/3088 Reviewed-By: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
parent
493be3ed23
commit
9c3d692b39
@ -83,10 +83,10 @@ TEST_IMPL(poll_multiple_handles) {
|
|||||||
/* Closing an already stopped polling handle is safe in any case */
|
/* Closing an already stopped polling handle is safe in any case */
|
||||||
uv_close((uv_handle_t*) &first_poll_handle, close_cb);
|
uv_close((uv_handle_t*) &first_poll_handle, close_cb);
|
||||||
|
|
||||||
uv_unref(&second_poll_handle);
|
uv_unref((uv_handle_t*) &second_poll_handle);
|
||||||
ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT));
|
ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT));
|
||||||
ASSERT(close_cb_called == 1);
|
ASSERT(close_cb_called == 1);
|
||||||
uv_ref(&second_poll_handle);
|
uv_ref((uv_handle_t*) &second_poll_handle);
|
||||||
|
|
||||||
ASSERT(uv_is_active((uv_handle_t*) &second_poll_handle));
|
ASSERT(uv_is_active((uv_handle_t*) &second_poll_handle));
|
||||||
uv_close((uv_handle_t*) &second_poll_handle, close_cb);
|
uv_close((uv_handle_t*) &second_poll_handle, close_cb);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user