Commit d7161a85 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

kernel32/tests: Split up checks in flush_proc function.

This test is failing intermittently on the testbot but not enough information is output to tell why. Signed-off-by: 's avatarAlex Henrie <alexhenrie24@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 56a6a039
......@@ -2858,9 +2858,15 @@ static DWORD CALLBACK flush_proc(HANDLE pipe)
res = FlushFileBuffers(pipe);
if (expected_flush_error == ERROR_SUCCESS)
{
ok(res, "FlushFileBuffers failed: %u\n", GetLastError());
}
else
ok(!res && GetLastError() == expected_flush_error, "FlushFileBuffers failed: %u\n", GetLastError());
{
ok(!res, "FlushFileBuffers should have failed\n");
ok(GetLastError() == expected_flush_error,
"FlushFileBuffers set error %u, expected %u\n", GetLastError(), expected_flush_error);
}
return 0;
}
......
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