Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
75b9c221
Commit
75b9c221
authored
Jan 29, 2024
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Skip device manager test if d3d11 device can't be created.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
0db8c018
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
mfplat.c
dlls/mfplat/tests/mfplat.c
+10
-5
No files found.
dlls/mfplat/tests/mfplat.c
View file @
75b9c221
...
...
@@ -5690,6 +5690,16 @@ static void test_dxgi_device_manager(void)
return
;
}
hr
=
pD3D11CreateDevice
(
NULL
,
D3D_DRIVER_TYPE_HARDWARE
,
NULL
,
D3D11_CREATE_DEVICE_VIDEO_SUPPORT
,
NULL
,
0
,
D3D11_SDK_VERSION
,
&
d3d11_dev
,
NULL
,
NULL
);
if
(
FAILED
(
hr
))
{
skip
(
"Failed to create D3D11 device object.
\n
"
);
return
;
}
ok
(
hr
==
S_OK
,
"D3D11CreateDevice failed: %#lx.
\n
"
,
hr
);
EXPECT_REF
(
d3d11_dev
,
1
);
hr
=
pMFCreateDXGIDeviceManager
(
NULL
,
&
manager
);
ok
(
hr
==
E_POINTER
,
"MFCreateDXGIDeviceManager should failed: %#lx.
\n
"
,
hr
);
...
...
@@ -5721,11 +5731,6 @@ static void test_dxgi_device_manager(void)
hr
=
IMFDXGIDeviceManager_CloseDeviceHandle
(
manager
,
0
);
ok
(
hr
==
E_HANDLE
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
pD3D11CreateDevice
(
NULL
,
D3D_DRIVER_TYPE_HARDWARE
,
NULL
,
D3D11_CREATE_DEVICE_VIDEO_SUPPORT
,
NULL
,
0
,
D3D11_SDK_VERSION
,
&
d3d11_dev
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"D3D11CreateDevice failed: %#lx.
\n
"
,
hr
);
EXPECT_REF
(
d3d11_dev
,
1
);
hr
=
IMFDXGIDeviceManager_ResetDevice
(
manager
,
(
IUnknown
*
)
d3d11_dev
,
token
-
1
);
ok
(
hr
==
E_INVALIDARG
,
"IMFDXGIDeviceManager_ResetDevice should failed: %#lx.
\n
"
,
hr
);
EXPECT_REF
(
d3d11_dev
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment