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
3fafd379
Commit
3fafd379
authored
Oct 28, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Allow some flags to fail surface creation in test_rt_caps.
parent
81ed93d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
2 deletions
+50
-2
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+25
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+25
-1
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
3fafd379
...
...
@@ -3078,6 +3078,7 @@ static void test_rt_caps(void)
DWORD
caps_in
;
DWORD
caps_out
;
HRESULT
create_device_hr
;
BOOL
create_may_fail
;
}
test_data
[]
=
{
...
...
@@ -3086,120 +3087,140 @@ static void test_rt_caps(void)
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_3DDEVICE
|
DDSCAPS_VIDEOMEMORY
,
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_3DDEVICE
|
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_LOCALVIDMEM
,
D3D_OK
,
FALSE
,
},
{
NULL
,
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_3DDEVICE
,
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_3DDEVICE
|
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_LOCALVIDMEM
,
D3D_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TEMMEMORY
|
DDSCAPS_3DDEVICE
|
DDSCAPS_ZBUFFER
,
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_3DDEVICE
|
DDSCAPS_ZBUFFER
,
DDERR_INVALIDCAPS
,
TRUE
/* Nvidia Kepler */
,
},
{
NULL
,
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_ZBUFFER
,
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_ZBUFFER
,
DDERR_INVALIDCAPS
,
TRUE
/* Nvidia Kepler */
,
},
};
...
...
@@ -3255,8 +3276,11 @@ static void test_rt_caps(void)
surface_desc
.
dwWidth
=
640
;
surface_desc
.
dwHeight
=
480
;
hr
=
IDirectDraw_CreateSurface
(
ddraw
,
&
surface_desc
,
&
surface
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Test %u: Failed to create surface with caps %#x, hr %#x.
\n
"
,
ok
(
SUCCEEDED
(
hr
)
||
broken
(
test_data
[
i
].
create_may_fail
),
"Test %u: Failed to create surface with caps %#x, hr %#x.
\n
"
,
i
,
test_data
[
i
].
caps_in
,
hr
);
if
(
FAILED
(
hr
))
continue
;
memset
(
&
surface_desc
,
0
,
sizeof
(
surface_desc
));
surface_desc
.
dwSize
=
sizeof
(
surface_desc
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
3fafd379
...
...
@@ -3664,6 +3664,7 @@ static void test_rt_caps(void)
HRESULT
create_device_hr
;
HRESULT
set_rt_hr
;
HRESULT
alternative_set_rt_hr
;
BOOL
create_may_fail
;
}
test_data
[]
=
{
...
...
@@ -3674,6 +3675,7 @@ static void test_rt_caps(void)
D3D_OK
,
D3D_OK
,
D3D_OK
,
FALSE
,
},
{
NULL
,
...
...
@@ -3682,6 +3684,7 @@ static void test_rt_caps(void)
D3D_OK
,
D3D_OK
,
D3D_OK
,
FALSE
,
},
{
NULL
,
...
...
@@ -3690,6 +3693,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
NULL
,
...
...
@@ -3698,6 +3702,7 @@ static void test_rt_caps(void)
D3DERR_SURFACENOTINVIDMEM
,
D3D_OK
,
D3D_OK
,
FALSE
,
},
{
NULL
,
...
...
@@ -3706,6 +3711,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
NULL
,
...
...
@@ -3714,6 +3720,7 @@ static void test_rt_caps(void)
D3D_OK
,
D3D_OK
,
D3D_OK
,
FALSE
,
},
{
NULL
,
...
...
@@ -3722,6 +3729,7 @@ static void test_rt_caps(void)
D3D_OK
,
D3D_OK
,
D3D_OK
,
FALSE
,
},
{
NULL
,
...
...
@@ -3730,6 +3738,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
NULL
,
...
...
@@ -3738,6 +3747,7 @@ static void test_rt_caps(void)
D3DERR_SURFACENOTINVIDMEM
,
D3D_OK
,
D3D_OK
,
FALSE
,
},
{
NULL
,
...
...
@@ -3746,6 +3756,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
&
p8_fmt
,
...
...
@@ -3754,6 +3765,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
&
p8_fmt
,
...
...
@@ -3762,6 +3774,7 @@ static void test_rt_caps(void)
DDERR_NOPALETTEATTACHED
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
&
p8_fmt
,
...
...
@@ -3770,6 +3783,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
&
p8_fmt
,
...
...
@@ -3778,6 +3792,7 @@ static void test_rt_caps(void)
DDERR_NOPALETTEATTACHED
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
&
p8_fmt
,
...
...
@@ -3786,6 +3801,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
NULL
,
...
...
@@ -3794,6 +3810,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDPIXELFORMAT
,
DDERR_INVALIDCAPS
,
TRUE
/* AMD Evergreen */
,
},
{
NULL
,
...
...
@@ -3802,6 +3819,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDPIXELFORMAT
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
NULL
,
...
...
@@ -3810,6 +3828,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
FALSE
,
},
{
NULL
,
...
...
@@ -3818,6 +3837,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDPIXELFORMAT
,
DDERR_INVALIDPIXELFORMAT
,
TRUE
/* Nvidia Kepler */
,
},
{
NULL
,
...
...
@@ -3826,6 +3846,7 @@ static void test_rt_caps(void)
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
DDERR_INVALIDCAPS
,
TRUE
/* Nvidia Kepler */
,
},
};
...
...
@@ -3881,8 +3902,11 @@ static void test_rt_caps(void)
surface_desc
.
dwWidth
=
640
;
surface_desc
.
dwHeight
=
480
;
hr
=
IDirectDraw2_CreateSurface
(
ddraw
,
&
surface_desc
,
&
surface
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Test %u: Failed to create surface with caps %#x, hr %#x.
\n
"
,
ok
(
SUCCEEDED
(
hr
)
||
broken
(
test_data
[
i
].
create_may_fail
),
"Test %u: Failed to create surface with caps %#x, hr %#x.
\n
"
,
i
,
test_data
[
i
].
caps_in
,
hr
);
if
(
FAILED
(
hr
))
continue
;
memset
(
&
surface_desc
,
0
,
sizeof
(
surface_desc
));
surface_desc
.
dwSize
=
sizeof
(
surface_desc
);
...
...
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