Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
12b9d371
Commit
12b9d371
authored
Dec 03, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Skip tests if we can't create the D3D9 object.
parent
855ce5bd
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
16 deletions
+48
-16
d3d9ex.c
dlls/d3d9/tests/d3d9ex.c
+5
-2
device.c
dlls/d3d9/tests/device.c
+8
-0
shader.c
dlls/d3d9/tests/shader.c
+5
-2
stateblock.c
dlls/d3d9/tests/stateblock.c
+5
-2
surface.c
dlls/d3d9/tests/surface.c
+5
-2
texture.c
dlls/d3d9/tests/texture.c
+5
-2
vertexdeclaration.c
dlls/d3d9/tests/vertexdeclaration.c
+5
-2
visual.c
dlls/d3d9/tests/visual.c
+5
-2
volume.c
dlls/d3d9/tests/volume.c
+5
-2
No files found.
dlls/d3d9/tests/d3d9ex.c
View file @
12b9d371
...
...
@@ -58,8 +58,11 @@ static void test_qi_base_to_ex(void)
HWND
window
=
create_window
();
D3DPRESENT_PARAMETERS
present_parameters
;
ok
(
d3d9
!=
NULL
,
"Failed to create D3D9 object
\n
"
);
if
(
!
d3d9
)
return
;
if
(
!
d3d9
)
{
skip
(
"Direct3D9 is not available
\n
"
);
return
;
}
hr
=
IDirect3D9_QueryInterface
(
d3d9
,
&
IID_IDirect3D9Ex
,
(
void
**
)
&
d3d9ex
);
ok
(
hr
==
E_NOINTERFACE
,
...
...
dlls/d3d9/tests/device.c
View file @
12b9d371
...
...
@@ -2153,6 +2153,14 @@ START_TEST(device)
ok
(
pDirect3DCreate9
!=
NULL
,
"Failed to get address of Direct3DCreate9
\n
"
);
if
(
pDirect3DCreate9
)
{
IDirect3D9
*
d3d9
=
pDirect3DCreate9
(
D3D_SDK_VERSION
);
if
(
!
d3d9
)
{
skip
(
"could not create D3D9 object
\n
"
);
return
;
}
IDirect3D9_Release
(
d3d9
);
test_display_formats
();
test_display_modes
();
test_swapchain
();
...
...
dlls/d3d9/tests/shader.c
View file @
12b9d371
...
...
@@ -46,8 +46,11 @@ static IDirect3DDevice9 *init_d3d9(void)
if
(
!
d3d9_create
)
return
NULL
;
d3d9_ptr
=
d3d9_create
(
D3D_SDK_VERSION
);
ok
(
d3d9_ptr
!=
NULL
,
"Failed to create IDirect3D9 object
\n
"
);
if
(
!
d3d9_ptr
)
return
NULL
;
if
(
!
d3d9_ptr
)
{
skip
(
"could not create D3D9
\n
"
);
return
NULL
;
}
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
...
...
dlls/d3d9/tests/stateblock.c
View file @
12b9d371
...
...
@@ -50,8 +50,11 @@ static HRESULT init_d3d9(
if
(
!
d3d9_create
)
return
E_FAIL
;
d3d9_ptr
=
d3d9_create
(
D3D_SDK_VERSION
);
ok
(
d3d9_ptr
!=
NULL
,
"Failed to create IDirect3D9 object
\n
"
);
if
(
!
d3d9_ptr
)
return
E_FAIL
;
if
(
!
d3d9_ptr
)
{
skip
(
"could not create D3D9
\n
"
);
return
E_FAIL
;
}
window
=
create_window
();
...
...
dlls/d3d9/tests/surface.c
View file @
12b9d371
...
...
@@ -43,8 +43,11 @@ static IDirect3DDevice9 *init_d3d9(HMODULE d3d9_handle)
if
(
!
d3d9_create
)
return
NULL
;
d3d9_ptr
=
d3d9_create
(
D3D_SDK_VERSION
);
ok
(
d3d9_ptr
!=
NULL
,
"Failed to create IDirect3D9 object
\n
"
);
if
(
!
d3d9_ptr
)
return
NULL
;
if
(
!
d3d9_ptr
)
{
skip
(
"could not create D3D9
\n
"
);
return
NULL
;
}
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
...
...
dlls/d3d9/tests/texture.c
View file @
12b9d371
...
...
@@ -43,8 +43,11 @@ static IDirect3DDevice9 *init_d3d9(HMODULE d3d9_handle)
if
(
!
d3d9_create
)
return
NULL
;
d3d9_ptr
=
d3d9_create
(
D3D_SDK_VERSION
);
ok
(
d3d9_ptr
!=
NULL
,
"Failed to create IDirect3D9 object
\n
"
);
if
(
!
d3d9_ptr
)
return
NULL
;
if
(
!
d3d9_ptr
)
{
skip
(
"could not create D3D9
\n
"
);
return
NULL
;
}
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
...
...
dlls/d3d9/tests/vertexdeclaration.c
View file @
12b9d371
...
...
@@ -51,8 +51,11 @@ static IDirect3DDevice9 *init_d3d9(void)
if
(
!
d3d9_create
)
return
NULL
;
d3d9_ptr
=
d3d9_create
(
D3D_SDK_VERSION
);
ok
(
d3d9_ptr
!=
NULL
,
"Failed to create IDirect3D9 object
\n
"
);
if
(
!
d3d9_ptr
)
return
NULL
;
if
(
!
d3d9_ptr
)
{
skip
(
"could not create D3D9
\n
"
);
return
NULL
;
}
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
...
...
dlls/d3d9/tests/visual.c
View file @
12b9d371
...
...
@@ -161,8 +161,11 @@ static IDirect3DDevice9 *init_d3d9(void)
if
(
!
d3d9_create
)
return
NULL
;
d3d9_ptr
=
d3d9_create
(
D3D_SDK_VERSION
);
ok
(
d3d9_ptr
!=
NULL
,
"Failed to create IDirect3D9 object
\n
"
);
if
(
!
d3d9_ptr
)
return
NULL
;
if
(
!
d3d9_ptr
)
{
skip
(
"could not create D3D9
\n
"
);
return
NULL
;
}
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
FALSE
;
...
...
dlls/d3d9/tests/volume.c
View file @
12b9d371
...
...
@@ -43,8 +43,11 @@ static IDirect3DDevice9 *init_d3d9(HMODULE d3d9_handle)
if
(
!
d3d9_create
)
return
NULL
;
d3d9_ptr
=
d3d9_create
(
D3D_SDK_VERSION
);
ok
(
d3d9_ptr
!=
NULL
,
"Failed to create IDirect3D9 object
\n
"
);
if
(
!
d3d9_ptr
)
return
NULL
;
if
(
!
d3d9_ptr
)
{
skip
(
"could not create D3D9
\n
"
);
return
NULL
;
}
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
...
...
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