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
d55bdc01
Commit
d55bdc01
authored
Feb 19, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: When tracing is enabled, output the todo tests too.
parent
5c8c151a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
test.h
include/wine/test.h
+15
-13
No files found.
include/wine/test.h
View file @
d55bdc01
...
...
@@ -258,29 +258,31 @@ int winetest_vok( int condition, const char *msg, va_list args )
{
if
(
condition
)
{
fprintf
(
stdout
,
"%s:%d: Test succeeded inside todo block"
,
fprintf
(
stdout
,
"%s:%d: Test succeeded inside todo block
:
"
,
data
->
current_file
,
data
->
current_line
);
if
(
msg
[
0
])
vfprintf
(
stdout
,
msg
,
args
);
InterlockedIncrement
(
&
todo_failures
);
return
0
;
}
else
{
if
(
winetest_debug
>
0
)
{
fprintf
(
stdout
,
": "
);
fprintf
(
stdout
,
"%s:%d: Test marked todo: "
,
data
->
current_file
,
data
->
current_line
);
vfprintf
(
stdout
,
msg
,
args
);
}
InterlockedIncrement
(
&
todo_
failur
es
);
return
0
;
InterlockedIncrement
(
&
todo_
success
es
);
return
1
;
}
else
InterlockedIncrement
(
&
todo_successes
);
}
else
{
if
(
!
condition
)
{
fprintf
(
stdout
,
"%s:%d: Test failed"
,
fprintf
(
stdout
,
"%s:%d: Test failed
:
"
,
data
->
current_file
,
data
->
current_line
);
if
(
msg
[
0
])
{
fprintf
(
stdout
,
": "
);
vfprintf
(
stdout
,
msg
,
args
);
}
vfprintf
(
stdout
,
msg
,
args
);
InterlockedIncrement
(
&
failures
);
return
0
;
}
...
...
@@ -290,9 +292,9 @@ int winetest_vok( int condition, const char *msg, va_list args )
fprintf
(
stdout
,
"%s:%d: Test succeeded
\n
"
,
data
->
current_file
,
data
->
current_line
);
InterlockedIncrement
(
&
successes
);
return
1
;
}
}
return
1
;
}
int
winetest_ok
(
int
condition
,
const
char
*
msg
,
...
)
...
...
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