Module: wine Branch: master Commit: 48f99c41455dd1b7727bcc82e07e24428820465b URL: https://gitlab.winehq.org/wine/wine/-/commit/48f99c41455dd1b7727bcc82e07e244...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Sep 26 19:59:14 2022 +0200
dinput/tests: Mark a mouse input test as flaky.
---
dlls/dinput/tests/device8.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/dinput/tests/device8.c b/dlls/dinput/tests/device8.c index ebe376d1127..e779b56092a 100644 --- a/dlls/dinput/tests/device8.c +++ b/dlls/dinput/tests/device8.c @@ -2032,12 +2032,16 @@ static void test_sys_mouse( DWORD version ) ok( hr == (version < 0x800 ? DI_OK : DI_BUFFEROVERFLOW), "GetDeviceData returned %#lx\n", hr ); count = 1; hr = IDirectInputDevice8_GetDeviceData( device, sizeof(objdata), &objdata, &count, 0 ); + + flaky_wine_if (hr == DIERR_NOTACQUIRED) ok( hr == DI_OK, "GetDeviceData returned %#lx\n", hr ); ok( count == 1, "got count %lu\n", count );
- hr = IDirectInputDevice8_Unacquire( device ); - ok( hr == DI_OK, "Unacquire returned %#lx\n", hr ); - + if (hr != DIERR_NOTACQUIRED) + { + hr = IDirectInputDevice8_Unacquire( device ); + ok( hr == DI_OK, "Unacquire returned %#lx\n", hr ); + }
tmp_hwnd = CreateWindowW( L"static", L"static", WS_POPUP | WS_VISIBLE, 50, 250, 200, 200, NULL, NULL, NULL, NULL );