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

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-03-03 16:21:07 +01:00 committed by Alexandre Julliard
parent 41b126b5fc
commit a0aac49591
1 changed files with 9 additions and 0 deletions

View File

@ -4435,6 +4435,15 @@ static void test_flush_buffers_file(void)
ok(status == STATUS_INVALID_HANDLE, "expected STATUS_INVALID_HANDLE, got %#x.\n", status);
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);
}