Commit a0aac495 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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

parent 41b126b5
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment