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
e199e021
Commit
e199e021
authored
Aug 29, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Rename winetest_printf to winetest_print_location.
parent
8f12e2a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
test.h
include/wine/test.h
+10
-10
No files found.
include/wine/test.h
View file @
e199e021
...
...
@@ -168,8 +168,8 @@ static const char winetest_color_blue[] = "\x1b[34m";
static
const
char
winetest_color_bright_red
[]
=
"
\x1b
[1;91m"
;
static
const
char
winetest_color_bright_purple
[]
=
"
\x1b
[1;95m"
;
static
void
winetest_print
f
(
const
char
*
msg
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
void
winetest_print
f
(
const
char
*
msg
,
...
)
static
void
winetest_print
_location
(
const
char
*
msg
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
void
winetest_print
_location
(
const
char
*
msg
,
...
)
{
struct
winetest_thread_data
*
data
=
winetest_get_thread_data
();
va_list
valist
;
...
...
@@ -185,7 +185,7 @@ static void winetest_print_context( const char *msgtype )
struct
winetest_thread_data
*
data
=
winetest_get_thread_data
();
unsigned
int
i
;
winetest_print
f
(
"%s"
,
msgtype
);
winetest_print
_location
(
"%s"
,
msgtype
);
for
(
i
=
0
;
i
<
data
->
context_count
;
++
i
)
printf
(
"%s: "
,
data
->
context
[
i
]
);
}
...
...
@@ -193,14 +193,14 @@ static void winetest_print_context( const char *msgtype )
static
inline
void
winetest_subtest
(
const
char
*
name
)
{
winetest_print_lock
();
winetest_print
f
(
"Subtest %s
\n
"
,
name
);
winetest_print
_location
(
"Subtest %s
\n
"
,
name
);
winetest_print_unlock
();
}
static
inline
void
winetest_ignore_exceptions
(
BOOL
ignore
)
{
winetest_print_lock
();
winetest_print
f
(
"IgnoreExceptions=%d
\n
"
,
ignore
?
1
:
0
);
winetest_print
_location
(
"IgnoreExceptions=%d
\n
"
,
ignore
?
1
:
0
);
winetest_print_unlock
();
}
...
...
@@ -226,7 +226,7 @@ static LONG winetest_add_line( void )
if
(
count
==
winetest_mute_threshold
)
{
winetest_print_lock
();
winetest_print
f
(
"Line has been silenced after %d occurrences
\n
"
,
winetest_mute_threshold
);
winetest_print
_location
(
"Line has been silenced after %d occurrences
\n
"
,
winetest_mute_threshold
);
winetest_print_unlock
();
}
...
...
@@ -320,7 +320,7 @@ static int winetest_vok( int condition, const char *msg, va_list args )
{
winetest_print_lock
();
if
(
winetest_color
)
printf
(
winetest_color_green
);
winetest_print
f
(
"Test succeeded
\n
"
);
winetest_print
_location
(
"Test succeeded
\n
"
);
if
(
winetest_color
)
printf
(
winetest_color_reset
);
winetest_print_unlock
();
}
...
...
@@ -577,7 +577,7 @@ void winetest_print_lock(void)
ret
=
WaitForSingleObject
(
winetest_mutex
,
30000
);
if
(
ret
!=
WAIT_OBJECT_0
&&
ret
!=
WAIT_ABANDONED
)
{
winetest_print
f
(
"could not get the print lock: %u
\n
"
,
ret
);
winetest_print
_location
(
"could not get the print lock: %u
\n
"
,
ret
);
winetest_mutex
=
0
;
}
}
...
...
@@ -615,7 +615,7 @@ void winetest_wait_child_process( HANDLE process )
DWORD
pid
=
GetProcessId
(
process
);
winetest_print_lock
();
if
(
winetest_color
)
printf
(
winetest_color_bright_red
);
winetest_print
f
(
"unhandled exception %08x in child process %04x
\n
"
,
(
UINT
)
exit_code
,
(
UINT
)
pid
);
winetest_print
_location
(
"unhandled exception %08x in child process %04x
\n
"
,
(
UINT
)
exit_code
,
(
UINT
)
pid
);
if
(
winetest_color
)
printf
(
winetest_color_reset
);
winetest_print_unlock
();
InterlockedIncrement
(
&
winetest_failures
);
...
...
@@ -623,7 +623,7 @@ void winetest_wait_child_process( HANDLE process )
else
if
(
exit_code
)
{
winetest_print_lock
();
winetest_print
f
(
"%u failures in child process
\n
"
,
(
UINT
)
exit_code
);
winetest_print
_location
(
"%u failures in child process
\n
"
,
(
UINT
)
exit_code
);
winetest_print_unlock
();
while
(
exit_code
--
>
0
)
InterlockedIncrement
(
&
winetest_failures
);
}
...
...
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