diff --git a/patches/kernel32-Named_Pipe/0017-kernel32-tests-Add-additional-tests-for-PIPE_NOWAIT-.patch b/patches/kernel32-Named_Pipe/0017-kernel32-tests-Add-additional-tests-for-PIPE_NOWAIT-.patch index 6ed7a814..a3184e38 100644 --- a/patches/kernel32-Named_Pipe/0017-kernel32-tests-Add-additional-tests-for-PIPE_NOWAIT-.patch +++ b/patches/kernel32-Named_Pipe/0017-kernel32-tests-Add-additional-tests-for-PIPE_NOWAIT-.patch @@ -1,15 +1,15 @@ -From 3bbdd942918050d538375e8ef4655101359fab88 Mon Sep 17 00:00:00 2001 +From 5f05e5517f75081777b26d6f0e300a12121d094a Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 17 Aug 2014 02:56:57 +0200 Subject: kernel32/tests: Add additional tests for PIPE_NOWAIT in overlapped mode. --- - dlls/kernel32/tests/pipe.c | 295 ++++++++++++++++++++++++++++++++++++++++++++- - 1 file changed, 294 insertions(+), 1 deletion(-) + dlls/kernel32/tests/pipe.c | 293 ++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 292 insertions(+), 1 deletion(-) diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c -index 00840e6..f9354c6 100644 +index 3f753f8..c3f0b19 100644 --- a/dlls/kernel32/tests/pipe.c +++ b/dlls/kernel32/tests/pipe.c @@ -2748,7 +2748,7 @@ static void test_readfileex_pending(void) @@ -21,7 +21,7 @@ index 00840e6..f9354c6 100644 OVERLAPPED overlapped; char read_buf[1024]; char write_buf[1024]; -@@ -2906,6 +2906,160 @@ todo_wine +@@ -2903,6 +2903,159 @@ todo_wine CloseHandle(client); CloseHandle(server); @@ -52,7 +52,6 @@ index 00840e6..f9354c6 100644 + ok(completion_called == 0, "completion routine called before ReadFileEx returned\n"); + ok(GetLastError() == ERROR_NO_DATA, "expected ERROR_NO_DATA, got %d\n", GetLastError()); + wait = WaitForSingleObjectEx(event, 0, TRUE); -+ todo_wine + ok(wait == WAIT_TIMEOUT, "WaitForSingleObjectEx returned %x\n", wait); + ok(completion_called == 0, "completion routine called before writing to file\n"); + @@ -182,7 +181,7 @@ index 00840e6..f9354c6 100644 server = CreateNamedPipeA(PIPENAME, FILE_FLAG_OVERLAPPED | PIPE_ACCESS_DUPLEX, /* dwOpenMode */ PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT, /* nMaxInstances */ 1, -@@ -3044,6 +3198,145 @@ todo_wine +@@ -3041,6 +3194,144 @@ todo_wine ok(num_bytes == strlen(long_test_string)-4, "ReadFile returned only %d bytes\n", num_bytes); ok(!memcmp(long_test_string, read_buf, strlen(long_test_string)), "ReadFile read wrong bytes\n"); @@ -199,7 +198,6 @@ index 00840e6..f9354c6 100644 + ok(completion_called == 0, "completion routine called before ReadFileEx returned\n"); + ok(GetLastError() == ERROR_NO_DATA, "expected ERROR_NO_DATA, got %d\n", GetLastError()); + wait = WaitForSingleObjectEx(event, 0, TRUE); -+ todo_wine + ok(wait == WAIT_TIMEOUT, "WaitForSingleObjectEx returned %x\n", wait); + ok(completion_called == 0, "completion routine called before writing to file\n"); + @@ -329,5 +327,5 @@ index 00840e6..f9354c6 100644 CloseHandle(server); CloseHandle(event); -- -2.2.1 +2.3.0