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
2d8aed6b
Commit
2d8aed6b
authored
Oct 28, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Make the "Tests executed" counter stable.
parent
3160ad76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
stateblock.c
dlls/d3d9/tests/stateblock.c
+15
-15
No files found.
dlls/d3d9/tests/stateblock.c
View file @
2d8aed6b
...
...
@@ -197,13 +197,13 @@ static void execute_test_chain(
memcpy
(
test
[
i
].
return_data
,
test
[
i
].
poison_data
,
test
[
i
].
data_size
);
test
[
i
].
get_handler
(
device
,
&
test
[
i
],
test
[
i
].
return_data
);
if
((
outcome
&
EVENT_CHECK_TEST
)
&&
memcmp
(
test
[
i
].
test_data_out
,
test
[
i
].
return_data
,
test
[
i
].
data_size
))
{
if
(
outcome
&
EVENT_CHECK_TEST
)
{
ok
(
FALSE
,
"Test %s, Stage %u: change applied, but returned data does not "
"match test data [csize=%u]
\n
"
,
test
[
i
].
test_name
,
j
,
test
[
i
].
data_size
);
BOOL
test_failed
=
memcmp
(
test
[
i
].
test_data_out
,
test
[
i
].
return_data
,
test
[
i
].
data_size
);
ok
(
!
test_failed
,
"Test %s, Stage %u: returned data does not match test data [csize=%u]
\n
"
,
test
[
i
].
test_name
,
j
,
test
[
i
].
data_size
);
if
(
test
[
i
].
print_handler
)
{
if
(
test
_failed
&&
test
[
i
].
print_handler
)
{
trace
(
"Returned data was:
\n
"
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
return_data
);
trace
(
"Test data was:
\n
"
);
...
...
@@ -211,13 +211,13 @@ static void execute_test_chain(
}
}
else
if
((
outcome
&
EVENT_CHECK_DEFAULT
)
&&
memcmp
(
test
[
i
].
default_data
,
test
[
i
].
return_data
,
test
[
i
].
data_size
))
{
else
if
(
outcome
&
EVENT_CHECK_DEFAULT
)
{
ok
(
FALSE
,
"Test %s, Stage %u: change aborted, but returned data does not "
"match default data [csize=%u]
\n
"
,
test
[
i
].
test_name
,
j
,
test
[
i
].
data_size
);
BOOL
test_failed
=
memcmp
(
test
[
i
].
default_data
,
test
[
i
].
return_data
,
test
[
i
].
data_size
);
ok
(
!
test_failed
,
"Test %s, Stage %u: returned data does not match default data [csize=%u]
\n
"
,
test
[
i
].
test_name
,
j
,
test
[
i
].
data_size
);
if
(
test
[
i
].
print_handler
)
{
if
(
test
_failed
&&
test
[
i
].
print_handler
)
{
trace
(
"Returned data was:
\n
"
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
return_data
);
trace
(
"Default data was:
\n
"
);
...
...
@@ -225,13 +225,13 @@ static void execute_test_chain(
}
}
else
if
((
outcome
&
EVENT_CHECK_INITIAL
)
&&
memcmp
(
test
[
i
].
initial_data
,
test
[
i
].
return_data
,
test
[
i
].
data_size
))
{
else
if
(
outcome
&
EVENT_CHECK_INITIAL
)
{
ok
(
FALSE
,
"Test %s, Stage %u: returned data does not "
"match initial data [csize=%u]
\n
"
,
test
[
i
].
test_name
,
j
,
test
[
i
].
data_size
);
BOOL
test_failed
=
memcmp
(
test
[
i
].
initial_data
,
test
[
i
].
return_data
,
test
[
i
].
data_size
);
ok
(
!
test_failed
,
"Test %s, Stage %u: returned data does not match initial data [csize=%u]
\n
"
,
test
[
i
].
test_name
,
j
,
test
[
i
].
data_size
);
if
(
test
[
i
].
print_handler
)
{
if
(
test
_failed
&&
test
[
i
].
print_handler
)
{
trace
(
"Returned data was:
\n
"
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
return_data
);
trace
(
"Initial data was:
\n
"
);
...
...
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