From 01ab8d64ad9c0dd8bedb1bcaff3ef74d09372c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 5 Jan 2016 09:10:12 +0100 Subject: [PATCH] test: fixup eintr_handling - Add missing include - Fix test name on Windows - Fixup style Refs: https://github.com/libuv/libuv/pull/661 PR-URL: https://github.com/libuv/libuv/pull/673 Reviewed-By: Ben Noordhuis Reviewed-By: Fedor Indutny --- test/test-eintr-handling.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test-eintr-handling.c b/test/test-eintr-handling.c index 1fffcd2d..1aaf623b 100644 --- a/test/test-eintr-handling.c +++ b/test/test-eintr-handling.c @@ -24,12 +24,13 @@ #ifdef _WIN32 -TEST_IMPL(pipe_set_non_blocking) { +TEST_IMPL(eintr_handling) { RETURN_SKIP("Test not implemented on Windows."); } #else /* !_WIN32 */ +#include #include static uv_loop_t* loop; @@ -49,9 +50,9 @@ static void thread_main(void* arg) { int nwritten; ASSERT(0 == kill(getpid(), SIGUSR1)); - do { - nwritten = write(pipe_fds[1], test_buf, sizeof(test_buf)); - } while (nwritten == -1 && errno == EINTR); + do + nwritten = write(pipe_fds[1], test_buf, sizeof(test_buf)); + while (nwritten == -1 && errno == EINTR); ASSERT(nwritten == sizeof(test_buf)); }