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: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
56a6a03918
commit
d7161a8576
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue