Module: wine Branch: master Commit: 2dd3a20520dd2a3f18140a0f89ce87b1349caaea URL: https://gitlab.winehq.org/wine/wine/-/commit/2dd3a20520dd2a3f18140a0f89ce87b...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Nov 19 15:07:53 2023 +0100
dxva2/tests: Skip tests if D3D9 is unusable.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
---
dlls/dxva2/tests/dxva2.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/dlls/dxva2/tests/dxva2.c b/dlls/dxva2/tests/dxva2.c index db48f331772..96368602f4a 100644 --- a/dlls/dxva2/tests/dxva2.c +++ b/dlls/dxva2/tests/dxva2.c @@ -695,6 +695,16 @@ done:
START_TEST(dxva2) { + IDirect3D9 *d3d; + + d3d = Direct3DCreate9(D3D_SDK_VERSION); + if (!d3d) + { + skip("Failed to initialize D3D9. Skipping tests.\n"); + return; + } + IDirect3D9_Release(d3d); + test_device_manager(); test_video_processor(); test_progressive_device();