Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
89ad1f26
Commit
89ad1f26
authored
Jul 19, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Print information about the last executed test before crashing.
parent
e2c48c59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
test.h
include/wine/test.h
+15
-2
No files found.
include/wine/test.h
View file @
89ad1f26
...
...
@@ -237,8 +237,7 @@ static tls_data* get_tls_data(void)
data
=
TlsGetValue
(
tls_index
);
if
(
!
data
)
{
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
tls_data
));
data
->
todo_level
=
0
;
data
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
tls_data
));
data
->
str_pos
=
data
->
strings
;
TlsSetValue
(
tls_index
,
data
);
}
...
...
@@ -577,6 +576,19 @@ static void usage( const char *argv0 )
exit_process
(
1
);
}
/* trap unhandled exceptions */
static
LONG
CALLBACK
exc_filter
(
EXCEPTION_POINTERS
*
ptrs
)
{
tls_data
*
data
=
get_tls_data
();
if
(
data
->
current_file
)
fprintf
(
stdout
,
"%s:%d: this is the last test seen before the exception
\n
"
,
data
->
current_file
,
data
->
current_line
);
fprintf
(
stdout
,
"%s: unhandled exception %08x at %p
\n
"
,
current_test
->
name
,
ptrs
->
ExceptionRecord
->
ExceptionCode
,
ptrs
->
ExceptionRecord
->
ExceptionAddress
);
fflush
(
stdout
);
return
EXCEPTION_EXECUTE_HANDLER
;
}
/* main function */
int
main
(
int
argc
,
char
**
argv
)
...
...
@@ -593,6 +605,7 @@ int main( int argc, char **argv )
if
(
GetEnvironmentVariableA
(
"WINETEST_INTERACTIVE"
,
p
,
sizeof
(
p
)
))
winetest_interactive
=
atoi
(
p
);
if
(
GetEnvironmentVariableA
(
"WINETEST_REPORT_SUCCESS"
,
p
,
sizeof
(
p
)
))
report_success
=
atoi
(
p
);
if
(
!
strcmp
(
winetest_platform
,
"windows"
))
SetUnhandledExceptionFilter
(
exc_filter
);
if
(
!
winetest_interactive
)
SetErrorMode
(
SEM_FAILCRITICALERRORS
|
SEM_NOGPFAULTERRORBOX
);
if
(
!
argv
[
1
])
...
...
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