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
174dbaf0
Commit
174dbaf0
authored
Apr 29, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Handle the Windows 8 testbot in test_primary_palette().
parent
efc1d791
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+17
-0
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+17
-0
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+17
-0
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+17
-0
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
174dbaf0
...
...
@@ -3987,6 +3987,22 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface_SetPalette
(
primary
,
palette
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set palette, hr %#x.
\n
"
,
hr
);
/* The Windows 8 testbot attaches the palette to the backbuffer as well,
* and is generally somewhat broken with respect to 8 bpp / palette
* handling. */
if
(
SUCCEEDED
(
IDirectDrawSurface_GetPalette
(
backbuffer
,
&
tmp
)))
{
win_skip
(
"Broken palette handling detected, skipping tests.
\n
"
);
IDirectDrawPalette_Release
(
tmp
);
IDirectDrawPalette_Release
(
palette
);
/* The Windows 8 testbot keeps extra references to the primary and
* backbuffer while in 8 bpp mode. */
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"Failed to restore display mode, hr %#x.
\n
"
,
hr
);
goto
done
;
}
refcount
=
get_refcount
((
IUnknown
*
)
palette
);
ok
(
refcount
==
2
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
...
...
@@ -4027,6 +4043,7 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface_GetPalette
(
primary
,
&
tmp
);
ok
(
hr
==
DDERR_NOPALETTEATTACHED
,
"Got unexpected hr %#x.
\n
"
,
hr
);
done:
refcount
=
IDirectDrawSurface_Release
(
backbuffer
);
ok
(
refcount
==
1
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
refcount
=
IDirectDrawSurface_Release
(
primary
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
174dbaf0
...
...
@@ -5092,6 +5092,22 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface_SetPalette
(
primary
,
palette
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set palette, hr %#x.
\n
"
,
hr
);
/* The Windows 8 testbot attaches the palette to the backbuffer as well,
* and is generally somewhat broken with respect to 8 bpp / palette
* handling. */
if
(
SUCCEEDED
(
IDirectDrawSurface_GetPalette
(
backbuffer
,
&
tmp
)))
{
win_skip
(
"Broken palette handling detected, skipping tests.
\n
"
);
IDirectDrawPalette_Release
(
tmp
);
IDirectDrawPalette_Release
(
palette
);
/* The Windows 8 testbot keeps extra references to the primary and
* backbuffer while in 8 bpp mode. */
hr
=
IDirectDraw2_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"Failed to restore display mode, hr %#x.
\n
"
,
hr
);
goto
done
;
}
refcount
=
get_refcount
((
IUnknown
*
)
palette
);
ok
(
refcount
==
2
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
...
...
@@ -5132,6 +5148,7 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface_GetPalette
(
primary
,
&
tmp
);
ok
(
hr
==
DDERR_NOPALETTEATTACHED
,
"Got unexpected hr %#x.
\n
"
,
hr
);
done:
refcount
=
IDirectDrawSurface_Release
(
backbuffer
);
ok
(
refcount
==
1
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
refcount
=
IDirectDrawSurface_Release
(
primary
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
174dbaf0
...
...
@@ -5752,6 +5752,22 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface4_SetPalette
(
primary
,
palette
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set palette, hr %#x.
\n
"
,
hr
);
/* The Windows 8 testbot attaches the palette to the backbuffer as well,
* and is generally somewhat broken with respect to 8 bpp / palette
* handling. */
if
(
SUCCEEDED
(
IDirectDrawSurface4_GetPalette
(
backbuffer
,
&
tmp
)))
{
win_skip
(
"Broken palette handling detected, skipping tests.
\n
"
);
IDirectDrawPalette_Release
(
tmp
);
IDirectDrawPalette_Release
(
palette
);
/* The Windows 8 testbot keeps extra references to the primary and
* backbuffer while in 8 bpp mode. */
hr
=
IDirectDraw4_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"Failed to restore display mode, hr %#x.
\n
"
,
hr
);
goto
done
;
}
refcount
=
get_refcount
((
IUnknown
*
)
palette
);
ok
(
refcount
==
2
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
...
...
@@ -5792,6 +5808,7 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface4_GetPalette
(
primary
,
&
tmp
);
ok
(
hr
==
DDERR_NOPALETTEATTACHED
,
"Got unexpected hr %#x.
\n
"
,
hr
);
done:
refcount
=
IDirectDrawSurface4_Release
(
backbuffer
);
ok
(
refcount
==
1
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
refcount
=
IDirectDrawSurface4_Release
(
primary
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
174dbaf0
...
...
@@ -5631,6 +5631,22 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface7_SetPalette
(
primary
,
palette
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set palette, hr %#x.
\n
"
,
hr
);
/* The Windows 8 testbot attaches the palette to the backbuffer as well,
* and is generally somewhat broken with respect to 8 bpp / palette
* handling. */
if
(
SUCCEEDED
(
IDirectDrawSurface7_GetPalette
(
backbuffer
,
&
tmp
)))
{
win_skip
(
"Broken palette handling detected, skipping tests.
\n
"
);
IDirectDrawPalette_Release
(
tmp
);
IDirectDrawPalette_Release
(
palette
);
/* The Windows 8 testbot keeps extra references to the primary and
* backbuffer while in 8 bpp mode. */
hr
=
IDirectDraw7_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"Failed to restore display mode, hr %#x.
\n
"
,
hr
);
goto
done
;
}
refcount
=
get_refcount
((
IUnknown
*
)
palette
);
ok
(
refcount
==
2
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
...
...
@@ -5671,6 +5687,7 @@ static void test_primary_palette(void)
hr
=
IDirectDrawSurface7_GetPalette
(
primary
,
&
tmp
);
ok
(
hr
==
DDERR_NOPALETTEATTACHED
,
"Got unexpected hr %#x.
\n
"
,
hr
);
done:
refcount
=
IDirectDrawSurface7_Release
(
backbuffer
);
ok
(
refcount
==
1
,
"Got unexpected refcount %u.
\n
"
,
refcount
);
refcount
=
IDirectDrawSurface7_Release
(
primary
);
...
...
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