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
c8c96e89
Commit
c8c96e89
authored
Jan 27, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add casts to avoid printf format warnings with 'long' types.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae2693e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
test.h
include/wine/test.h
+11
-11
No files found.
include/wine/test.h
View file @
c8c96e89
...
...
@@ -545,7 +545,7 @@ void winetest_wait_child_process( HANDLE process )
winetest_ok
(
0
,
"Timed out waiting for the child process
\n
"
);
else
if
(
ret
!=
WAIT_OBJECT_0
)
winetest_ok
(
0
,
"Could not wait for the child process: %d le=%u
\n
"
,
ret
,
GetLastError
()
);
(
UINT
)
ret
,
(
UINT
)
GetLastError
()
);
else
{
DWORD
exit_code
;
...
...
@@ -553,12 +553,12 @@ void winetest_wait_child_process( HANDLE process )
if
(
exit_code
>
255
)
{
DWORD
pid
=
GetProcessId
(
process
);
winetest_printf
(
"unhandled exception %08x in child process %04x
\n
"
,
exit_code
,
pid
);
winetest_printf
(
"unhandled exception %08x in child process %04x
\n
"
,
(
UINT
)
exit_code
,
(
UINT
)
pid
);
InterlockedIncrement
(
&
failures
);
}
else
if
(
exit_code
)
{
winetest_printf
(
"%u failures in child process
\n
"
,
exit_code
);
winetest_printf
(
"%u failures in child process
\n
"
,
(
UINT
)
exit_code
);
while
(
exit_code
--
>
0
)
InterlockedIncrement
(
&
failures
);
}
...
...
@@ -615,14 +615,14 @@ static int run_test( const char *name )
{
if
(
muted_todo_successes
||
muted_skipped
||
muted_traces
)
printf
(
"%04x:%s:%s Silenced %d todos, %d skips and %d traces.
\n
"
,
GetCurrentProcessId
(),
test
->
name
,
winetest_elapsed
(),
muted_todo_successes
,
muted_skipped
,
muted_traces
);
(
UINT
)
GetCurrentProcessId
(),
test
->
name
,
winetest_elapsed
(),
(
UINT
)
muted_todo_successes
,
(
UINT
)
muted_skipped
,
(
UINT
)
muted_traces
);
printf
(
"%04x:%s:%s %d tests executed (%d marked as todo, %d %s), %d skipped.
\n
"
,
GetCurrentProcessId
(),
test
->
name
,
winetest_elapsed
(),
successes
+
failures
+
todo_successes
+
todo_failures
,
todo_successes
,
failures
+
todo_failures
,
(
UINT
)
GetCurrentProcessId
(),
test
->
name
,
winetest_elapsed
(),
(
UINT
)(
successes
+
failures
+
todo_successes
+
todo_failures
)
,
(
UINT
)
todo_successes
,
(
UINT
)(
failures
+
todo_failures
)
,
(
failures
+
todo_failures
!=
1
)
?
"failures"
:
"failure"
,
skipped
);
(
UINT
)
skipped
);
}
status
=
(
failures
+
todo_failures
<
255
)
?
failures
+
todo_failures
:
255
;
return
status
;
...
...
@@ -646,8 +646,8 @@ static LONG CALLBACK exc_filter( EXCEPTION_POINTERS *ptrs )
printf
(
"%s:%d: this is the last test seen before the exception
\n
"
,
data
->
current_file
,
data
->
current_line
);
printf
(
"%04x:%s:%s unhandled exception %08x at %p
\n
"
,
GetCurrentProcessId
(),
current_test
->
name
,
winetest_elapsed
(),
ptrs
->
ExceptionRecord
->
ExceptionCode
,
ptrs
->
ExceptionRecord
->
ExceptionAddress
);
(
UINT
)
GetCurrentProcessId
(),
current_test
->
name
,
winetest_elapsed
(),
(
UINT
)
ptrs
->
ExceptionRecord
->
ExceptionCode
,
ptrs
->
ExceptionRecord
->
ExceptionAddress
);
fflush
(
stdout
);
return
EXCEPTION_EXECUTE_HANDLER
;
}
...
...
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