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
8bfb1ecf
Commit
8bfb1ecf
authored
Sep 28, 2022
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Print unhandled exception messages in colour.
Note that quite often the unhandled exception messages actually come from Windows or Wine and these cannot be colorized.
parent
a58c6251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test.h
include/wine/test.h
+4
-0
No files found.
include/wine/test.h
View file @
8bfb1ecf
...
...
@@ -654,7 +654,9 @@ void winetest_wait_child_process( HANDLE process )
{
DWORD
pid
=
GetProcessId
(
process
);
winetest_print_lock
();
if
(
winetest_color
)
printf
(
color_bright_red
);
winetest_printf
(
"unhandled exception %08x in child process %04x
\n
"
,
(
UINT
)
exit_code
,
(
UINT
)
pid
);
if
(
winetest_color
)
printf
(
color_reset
);
winetest_print_unlock
();
InterlockedIncrement
(
&
failures
);
}
...
...
@@ -754,9 +756,11 @@ static LONG CALLBACK exc_filter( EXCEPTION_POINTERS *ptrs )
if
(
data
->
current_file
)
printf
(
"%s:%d: this is the last test seen before the exception
\n
"
,
data
->
current_file
,
data
->
current_line
);
if
(
winetest_color
)
printf
(
color_bright_red
);
printf
(
"%04x:%s:%s unhandled exception %08x at %p
\n
"
,
(
UINT
)
GetCurrentProcessId
(),
current_test
->
name
,
winetest_elapsed
(),
(
UINT
)
ptrs
->
ExceptionRecord
->
ExceptionCode
,
ptrs
->
ExceptionRecord
->
ExceptionAddress
);
if
(
winetest_color
)
printf
(
color_reset
);
fflush
(
stdout
);
winetest_print_unlock
();
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