=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: ntdll/tests: Add test for flushing file with FILE_APPEND_DATA access.

Alexandre Julliard julliard at winehq.org
Fri Mar 3 14:20:36 CST 2017


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Fri Mar  3 16:21:07 2017 +0100

ntdll/tests: Add test for flushing file with FILE_APPEND_DATA access.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c
index 3d91cb1..5e7e1ee 100644
--- a/dlls/ntdll/tests/file.c
+++ b/dlls/ntdll/tests/file.c
@@ -4436,6 +4436,15 @@ static void test_flush_buffers_file(void)
 
     CloseHandle(hfileread);
     CloseHandle(hfile);
+    hfile = CreateFileA(buffer, FILE_APPEND_DATA, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
+            OPEN_EXISTING, 0, NULL);
+    ok(hfile != INVALID_HANDLE_VALUE, "could not open temp file, error %d.\n", GetLastError());
+
+    status = pNtFlushBuffersFile(hfile, &io_status_block);
+    todo_wine
+    ok(status == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#x.\n", status);
+
+    CloseHandle(hfile);
     DeleteFileA(buffer);
 }
 




More information about the wine-cvs mailing list