[PATCH] gdi32/tests: Expect STATUS_GRAPHICS_PRESENT_OCCLUDED when minimized

Zhiyi Zhang zzhang at codeweavers.com
Tue Jan 4 00:55:23 CST 2022



On 1/4/22 14:33, Alex Henrie wrote:
> Fixes a testbot failure.
>
> Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
> ---
>  dlls/gdi32/tests/driver.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/dlls/gdi32/tests/driver.c b/dlls/gdi32/tests/driver.c
> index 54144c44e1c..54cf06852a9 100644
> --- a/dlls/gdi32/tests/driver.c
> +++ b/dlls/gdi32/tests/driver.c
> @@ -648,11 +648,13 @@ static void test_D3DKMTCheckOcclusion(void)
>      status = pD3DKMTCheckOcclusion(&occlusion_desc);
>      ok(status == STATUS_SUCCESS, "Got unexpected return code %#x.\n", status);
>  
> -    /* Minimized state doesn't affect D3DKMTCheckOcclusion */
> +    /* Minimized state affects D3DKMTCheckOcclusion */
>      ShowWindow(hwnd, SW_MINIMIZE);
>      occlusion_desc.hWnd = hwnd;
>      status = pD3DKMTCheckOcclusion(&occlusion_desc);
> -    ok(status == STATUS_SUCCESS, "Got unexpected return code %#x.\n", status);
> +todo_wine
> +    ok(status == STATUS_GRAPHICS_PRESENT_OCCLUDED || broken(status == STATUS_SUCCESS) /* < win10 */,
> +       "Got unexpected return code %#x.\n", status);
>      ShowWindow(hwnd, SW_SHOWNORMAL);
>  
>      /* Invisible state doesn't affect D3DKMTCheckOcclusion */
I did encounter this test failure before. However, I am not sure this function returns STATUS_GRAPHICS_PRESENT_OCCLUDED
on Windows 10 for minimized windows. It succeeds on Windows 10 1607, 1809, 1909, 21H1. Maybe there is a window
affecting this test, for example, something like bug 52108.

Thanks,
Zhiyi



More information about the wine-devel mailing list