Module: wine Branch: master Commit: c738be12e1e425f0acd9e65d788d735f7214f892 URL: https://gitlab.winehq.org/wine/wine/-/commit/c738be12e1e425f0acd9e65d788d735...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Sep 26 19:57:55 2022 +0200
quartz/tests: Mark some tests as flaky.
---
dlls/quartz/tests/filtergraph.c | 3 +++ dlls/quartz/tests/videorenderer.c | 3 +++ dlls/quartz/tests/vmr7.c | 3 +++ dlls/quartz/tests/vmr9.c | 3 +++ 4 files changed, 12 insertions(+)
diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c index 0e9a398ad2c..2c07dc49356 100644 --- a/dlls/quartz/tests/filtergraph.c +++ b/dlls/quartz/tests/filtergraph.c @@ -430,6 +430,7 @@ static void test_state_change(IFilterGraph2 *graph) hr = IMediaControl_Pause(control); ok(SUCCEEDED(hr), "Got hr %#lx.\n", hr); hr = IMediaControl_GetState(control, 1000, &state); + flaky_wine ok(hr == S_OK, "Got hr %#lx.\n", hr); ok(state == State_Paused, "Got state %ld.\n", state);
@@ -519,10 +520,12 @@ static void test_media_event(IFilterGraph2 *graph) } } } + flaky_wine ok(got_eos, "didn't get EOS\n");
hr = IMediaSeeking_GetCurrentPosition(seeking, ¤t); ok(hr == S_OK, "Got hr %#lx.\n", hr); + flaky_wine ok(current == stop, "expected %s, got %s\n", wine_dbgstr_longlong(stop), wine_dbgstr_longlong(current));
hr = IMediaControl_Stop(control); diff --git a/dlls/quartz/tests/videorenderer.c b/dlls/quartz/tests/videorenderer.c index c76dae15e91..0c5f7f440ef 100644 --- a/dlls/quartz/tests/videorenderer.c +++ b/dlls/quartz/tests/videorenderer.c @@ -1723,6 +1723,7 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw style = GetWindowLongA(hwnd, GWL_STYLE); ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#lx.\n", style);
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
hr = IVideoWindow_get_WindowStyleEx(window, &style); @@ -2349,6 +2350,7 @@ static void test_video_window(void) filter = create_video_renderer(); flush_events();
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
IBaseFilter_FindPin(filter, L"In", &pin); @@ -2385,6 +2387,7 @@ static void test_video_window(void) hr = IFilterGraph2_ConnectDirect(graph, &source.source.pin.IPin_iface, pin, &req_mt); ok(hr == S_OK, "Got hr %#lx.\n", hr);
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
test_video_window_caption(window, hwnd); diff --git a/dlls/quartz/tests/vmr7.c b/dlls/quartz/tests/vmr7.c index 88c82bec0d3..0e5aa89265a 100644 --- a/dlls/quartz/tests/vmr7.c +++ b/dlls/quartz/tests/vmr7.c @@ -1725,6 +1725,7 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw style = GetWindowLongA(hwnd, GWL_STYLE); ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#lx.\n", style);
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
hr = IVideoWindow_get_WindowStyleEx(window, &style); @@ -2354,6 +2355,7 @@ static void test_video_window(void) filter = create_vmr7(0); flush_events();
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
IBaseFilter_FindPin(filter, L"VMR Input0", &pin); @@ -2407,6 +2409,7 @@ static void test_video_window(void) IMemAllocator_Release(allocator); }
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
test_video_window_caption(window, hwnd); diff --git a/dlls/quartz/tests/vmr9.c b/dlls/quartz/tests/vmr9.c index 405f7ee89ba..1d3fa207e18 100644 --- a/dlls/quartz/tests/vmr9.c +++ b/dlls/quartz/tests/vmr9.c @@ -1949,6 +1949,7 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw style = GetWindowLongA(hwnd, GWL_STYLE); ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#lx.\n", style);
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
hr = IVideoWindow_get_WindowStyleEx(window, &style); @@ -2580,6 +2581,7 @@ static void test_video_window(void) filter = create_vmr9(VMR9Mode_Windowed); flush_events();
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
IBaseFilter_FindPin(filter, L"VMR Input0", &pin); @@ -2632,6 +2634,7 @@ static void test_video_window(void) IMemAllocator_Release(allocator); }
+ flaky_wine ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
test_video_window_caption(window, hwnd);