Huw Davies : ntdll/tests: Wait for pending file operations to complete.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 14 06:22:36 CDT 2015


Module: wine
Branch: master
Commit: 14c53a58632f89a4d3a6ae449f339806b4c094a0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=14c53a58632f89a4d3a6ae449f339806b4c094a0

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu May 14 12:02:02 2015 +0100

ntdll/tests: Wait for pending file operations to complete.

---

 dlls/ntdll/tests/file.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c
index 19a886a..fb31b3a 100644
--- a/dlls/ntdll/tests/file.c
+++ b/dlls/ntdll/tests/file.c
@@ -2699,6 +2699,8 @@ static void test_read_write(void)
     {
         ok(GetLastError() == ERROR_IO_PENDING, "expected ERROR_IO_PENDING, got %d\n", GetLastError());
         ok(bytes == 0, "bytes %u\n", bytes);
+        ret = WaitForSingleObject(hfile, 3000);
+        ok(ret == WAIT_OBJECT_0, "WaitForSingleObject error %d\n", ret);
     }
     else ok(bytes == 4, "bytes %u\n", bytes);
     ok((NTSTATUS)ovl.Internal == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#lx\n", ovl.Internal);
@@ -2730,6 +2732,8 @@ static void test_read_write(void)
     {
         ok(GetLastError() == ERROR_IO_PENDING, "expected ERROR_IO_PENDING, got %d\n", GetLastError());
         ok(bytes == 0, "bytes %u\n", bytes);
+        ret = WaitForSingleObject(hfile, 3000);
+        ok(ret == WAIT_OBJECT_0, "WaitForSingleObject error %d\n", ret);
     }
     else ok(bytes == 14, "bytes %u\n", bytes);
     ok((NTSTATUS)ovl.Internal == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#lx\n", ovl.Internal);




More information about the wine-cvs mailing list