Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
252bead2
Commit
252bead2
authored
13 years ago
by
Stefan Dösinger
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ddraw: Remove crashing tests.
parent
33f087c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/ddraw/tests/ddrawmodes.c
+0
-36
0 additions, 36 deletions
dlls/ddraw/tests/ddrawmodes.c
with
0 additions
and
36 deletions
dlls/ddraw/tests/ddrawmodes.c
+
0
−
36
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment