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
725b8b7f
Commit
725b8b7f
authored
Dec 11, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When reporting a test failure, only report the file name, not the full
path. Merge winetest_set_trace_location with winetest_set_ok_location.
parent
d705b7c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
test.h
include/wine/test.h
+16
-18
No files found.
include/wine/test.h
View file @
725b8b7f
...
...
@@ -30,8 +30,7 @@ extern int winetest_debug;
/* current platform */
extern
const
char
*
winetest_platform
;
extern
void
winetest_set_ok_location
(
const
char
*
file
,
int
line
);
extern
void
winetest_set_trace_location
(
const
char
*
file
,
int
line
);
extern
void
winetest_set_location
(
const
char
*
file
,
int
line
);
extern
void
winetest_start_todo
(
const
char
*
platform
);
extern
int
winetest_loop_todo
(
void
);
extern
void
winetest_end_todo
(
const
char
*
platform
);
...
...
@@ -51,8 +50,8 @@ extern void winetest_trace( const char *msg, ... );
#endif
/* __GNUC__ */
#define ok_(file, line) (winetest_set_
ok_
location(file, line), 0) ? 0 : winetest_ok
#define trace_(file, line) (winetest_set_
trace_
location(file, line), 0) ? (void)0 : winetest_trace
#define ok_(file, line) (winetest_set_location(file, line), 0) ? 0 : winetest_ok
#define trace_(file, line) (winetest_set_location(file, line), 0) ? (void)0 : winetest_trace
#define ok ok_(__FILE__, __LINE__)
#define trace trace_(__FILE__, __LINE__)
...
...
@@ -125,6 +124,19 @@ static void exit_process( int code )
}
void
winetest_set_location
(
const
char
*
file
,
int
line
)
{
tls_data
*
data
=
get_tls_data
();
data
->
current_file
=
strrchr
(
file
,
'/'
);
if
(
data
->
current_file
==
NULL
)
data
->
current_file
=
strrchr
(
file
,
'\\'
);
if
(
data
->
current_file
==
NULL
)
data
->
current_file
=
file
;
else
data
->
current_file
++
;
data
->
current_line
=
line
;
}
/*
* Checks condition.
* Parameters:
...
...
@@ -187,13 +199,6 @@ int winetest_ok( int condition, const char *msg, ... )
return
1
;
}
void
winetest_set_ok_location
(
const
char
*
file
,
int
line
)
{
tls_data
*
data
=
get_tls_data
();
data
->
current_file
=
file
;
data
->
current_line
=
line
;
}
void
winetest_trace
(
const
char
*
msg
,
...
)
{
va_list
valist
;
...
...
@@ -208,13 +213,6 @@ void winetest_trace( const char *msg, ... )
}
}
void
winetest_set_trace_location
(
const
char
*
file
,
int
line
)
{
tls_data
*
data
=
get_tls_data
();
data
->
current_file
=
file
;
data
->
current_line
=
line
;
}
void
winetest_start_todo
(
const
char
*
platform
)
{
tls_data
*
data
=
get_tls_data
();
...
...
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