diff options
author | Santiago Gimeno <santiago.gimeno@gmail.com> | 2022-12-10 19:36:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 19:36:46 +0100 |
commit | abf77a9eda3c83e74d8d0f60d77fe00cb888908b (patch) | |
tree | 7b5b0bc6ecc7db6f5b748813d72fa4b3825f9a81 /test/test-tcp-connect-error-after-write.c | |
parent | 75d9411e803dea5363bfdc223f1f284b8cf3dec3 (diff) | |
download | libuv-abf77a9eda3c83e74d8d0f60d77fe00cb888908b.tar.gz libuv-abf77a9eda3c83e74d8d0f60d77fe00cb888908b.zip |
test: fix some unreachable code warnings (#3851)
Diffstat (limited to 'test/test-tcp-connect-error-after-write.c')
-rw-r--r-- | test/test-tcp-connect-error-after-write.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test-tcp-connect-error-after-write.c b/test/test-tcp-connect-error-after-write.c index 3f2e3572..ad214b93 100644 --- a/test/test-tcp-connect-error-after-write.c +++ b/test/test-tcp-connect-error-after-write.c @@ -55,6 +55,11 @@ static void write_cb(uv_write_t* req, int status) { * Related issue: https://github.com/joyent/libuv/issues/443 */ TEST_IMPL(tcp_connect_error_after_write) { +#ifdef _WIN32 + RETURN_SKIP("This test is disabled on Windows for now. " + "See https://github.com/joyent/libuv/issues/444\n"); +#else + uv_connect_t connect_req; struct sockaddr_in addr; uv_write_t write_req; @@ -62,12 +67,6 @@ TEST_IMPL(tcp_connect_error_after_write) { uv_buf_t buf; int r; -#ifdef _WIN32 - fprintf(stderr, "This test is disabled on Windows for now.\n"); - fprintf(stderr, "See https://github.com/joyent/libuv/issues/444\n"); - return 0; /* windows slackers... */ -#endif - ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); buf = uv_buf_init("TEST", 4); @@ -95,4 +94,5 @@ TEST_IMPL(tcp_connect_error_after_write) { MAKE_VALGRIND_HAPPY(); return 0; +#endif } |