kernel32/tests: Mark ERROR_HANDLE_EOF result as broken for async file read.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-04-20 02:06:01 +03:00 committed by Alexandre Julliard
parent b0d3b5b69c
commit a789548502
1 changed files with 1 additions and 1 deletions

View File

@ -5418,7 +5418,7 @@ static void test_overlapped_read(void)
err = GetLastError(); err = GetLastError();
/* Win8+ return ERROR_IO_PENDING like stated in MSDN, while older ones /* Win8+ return ERROR_IO_PENDING like stated in MSDN, while older ones
* return ERROR_HANDLE_EOF right away. */ * return ERROR_HANDLE_EOF right away. */
ok(!ret && (err == ERROR_HANDLE_EOF || err == ERROR_IO_PENDING), ok(!ret && (err == ERROR_IO_PENDING || broken(err == ERROR_HANDLE_EOF)),
"Unexpected ReadFile result, ret %#x, GetLastError() %u.\n", ret, GetLastError()); "Unexpected ReadFile result, ret %#x, GetLastError() %u.\n", ret, GetLastError());
if (err == ERROR_IO_PENDING) if (err == ERROR_IO_PENDING)
{ {