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
252bead2
Commit
252bead2
authored
Sep 07, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Remove crashing tests.
parent
33f087c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+0
-36
No files found.
dlls/ddraw/tests/ddrawmodes.c
View file @
252bead2
...
...
@@ -104,13 +104,6 @@ static void releasedirectdraw(void)
}
}
static
BOOL
WINAPI
crash_callbackA
(
GUID
*
lpGUID
,
LPSTR
lpDriverDescription
,
LPSTR
lpDriverName
,
LPVOID
lpContext
)
{
*
(
volatile
char
*
)
0
=
2
;
return
TRUE
;
}
static
BOOL
WINAPI
test_nullcontext_callbackA
(
GUID
*
lpGUID
,
LPSTR
lpDriverDescription
,
LPSTR
lpDriverName
,
LPVOID
lpContext
)
{
...
...
@@ -147,19 +140,6 @@ static void test_DirectDrawEnumerateA(void)
ret
=
pDirectDrawEnumerateA
(
NULL
,
NULL
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
/* Test with invalid callback parameter. */
ret
=
pDirectDrawEnumerateA
((
LPDDENUMCALLBACKA
)
0xdeadbeef
,
NULL
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
if
(
pDirectDrawEnumerateExA
)
{
/* Test with callback that crashes. */
ret
=
pDirectDrawEnumerateA
(
crash_callbackA
,
NULL
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
}
else
win_skip
(
"Test would crash on older ddraw
\n
"
);
/* Test with valid callback parameter and NULL context parameter. */
trace
(
"Calling DirectDrawEnumerateA with test_nullcontext_callbackA callback and NULL context.
\n
"
);
ret
=
pDirectDrawEnumerateA
(
test_nullcontext_callbackA
,
NULL
);
...
...
@@ -207,14 +187,6 @@ static void test_DirectDrawEnumerateW(void)
ok
(
ret
==
DDERR_UNSUPPORTED
,
"Expected DDERR_UNSUPPORTED, got %d
\n
"
,
ret
);
}
static
BOOL
WINAPI
crash_callbackExA
(
GUID
*
lpGUID
,
LPSTR
lpDriverDescription
,
LPSTR
lpDriverName
,
LPVOID
lpContext
,
HMONITOR
hm
)
{
*
(
volatile
char
*
)
0
=
2
;
return
TRUE
;
}
static
BOOL
WINAPI
test_nullcontext_callbackExA
(
GUID
*
lpGUID
,
LPSTR
lpDriverDescription
,
LPSTR
lpDriverName
,
LPVOID
lpContext
,
HMONITOR
hm
)
...
...
@@ -253,14 +225,6 @@ static void test_DirectDrawEnumerateExA(void)
ret
=
pDirectDrawEnumerateExA
(
NULL
,
NULL
,
0
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
/* Test with invalid callback parameter. */
ret
=
pDirectDrawEnumerateExA
((
LPDDENUMCALLBACKEXA
)
0xdeadbeef
,
NULL
,
0
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
/* Test with callback that crashes. */
ret
=
pDirectDrawEnumerateExA
(
crash_callbackExA
,
NULL
,
0
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
/* Test with valid callback parameter and invalid flags */
ret
=
pDirectDrawEnumerateExA
(
test_nullcontext_callbackExA
,
NULL
,
~
0
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
...
...
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