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
2ff48996
Commit
2ff48996
authored
Dec 17, 2002
by
Tony Lambregts
Committed by
Alexandre Julliard
Dec 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Direct the output of the tests to stdout so that Win98 can redirect
the output to a file.
parent
bf25cefe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
test.h
include/wine/test.h
+17
-17
No files found.
include/wine/test.h
View file @
2ff48996
...
...
@@ -119,7 +119,7 @@ static tls_data* get_tls_data(void)
static
void
exit_process
(
int
code
)
{
fflush
(
std
err
);
fflush
(
std
out
);
ExitProcess
(
code
);
}
...
...
@@ -156,16 +156,16 @@ int winetest_ok( int condition, const char *msg, ... )
{
if
(
condition
)
{
fprintf
(
std
err
,
"%s:%d: Test succeeded inside todo block"
,
fprintf
(
std
out
,
"%s:%d: Test succeeded inside todo block"
,
data
->
current_file
,
data
->
current_line
);
if
(
msg
&&
msg
[
0
])
{
va_start
(
valist
,
msg
);
fprintf
(
std
err
,
": "
);
vfprintf
(
std
err
,
msg
,
valist
);
fprintf
(
std
out
,
": "
);
vfprintf
(
std
out
,
msg
,
valist
);
va_end
(
valist
);
}
fputc
(
'\n'
,
std
err
);
fputc
(
'\n'
,
std
out
);
InterlockedIncrement
(
&
todo_failures
);
return
0
;
}
...
...
@@ -175,23 +175,23 @@ int winetest_ok( int condition, const char *msg, ... )
{
if
(
!
condition
)
{
fprintf
(
std
err
,
"%s:%d: Test failed"
,
fprintf
(
std
out
,
"%s:%d: Test failed"
,
data
->
current_file
,
data
->
current_line
);
if
(
msg
&&
msg
[
0
])
{
va_start
(
valist
,
msg
);
fprintf
(
std
err
,
": "
);
vfprintf
(
std
err
,
msg
,
valist
);
fprintf
(
std
out
,
": "
);
vfprintf
(
std
out
,
msg
,
valist
);
va_end
(
valist
);
}
fputc
(
'\n'
,
std
err
);
fputc
(
'\n'
,
std
out
);
InterlockedIncrement
(
&
failures
);
return
0
;
}
else
{
if
(
report_success
)
fprintf
(
std
err
,
"%s:%d: Test succeeded
\n
"
,
fprintf
(
std
out
,
"%s:%d: Test succeeded
\n
"
,
data
->
current_file
,
data
->
current_line
);
InterlockedIncrement
(
&
successes
);
}
...
...
@@ -206,9 +206,9 @@ void winetest_trace( const char *msg, ... )
if
(
winetest_debug
>
0
)
{
fprintf
(
std
err
,
"%s:%d:"
,
data
->
current_file
,
data
->
current_line
);
fprintf
(
std
out
,
"%s:%d:"
,
data
->
current_file
,
data
->
current_line
);
va_start
(
valist
,
msg
);
vfprintf
(
std
err
,
msg
,
valist
);
vfprintf
(
std
out
,
msg
,
valist
);
va_end
(
valist
);
}
}
...
...
@@ -272,7 +272,7 @@ static int run_test( const char *name )
if
(
!
(
test
=
find_test
(
name
)))
{
fprintf
(
std
err
,
"Fatal: test '%s' does not exist.
\n
"
,
name
);
fprintf
(
std
out
,
"Fatal: test '%s' does not exist.
\n
"
,
name
);
exit_process
(
1
);
}
successes
=
failures
=
todo_successes
=
todo_failures
=
0
;
...
...
@@ -282,7 +282,7 @@ static int run_test( const char *name )
if
(
winetest_debug
)
{
fprintf
(
std
err
,
"%s: %ld tests executed, %ld marked as todo, %ld %s.
\n
"
,
fprintf
(
std
out
,
"%s: %ld tests executed, %ld marked as todo, %ld %s.
\n
"
,
name
,
successes
+
failures
+
todo_successes
+
todo_failures
,
todo_successes
,
failures
+
todo_failures
,
(
failures
+
todo_failures
!=
1
)
?
"failures"
:
"failure"
);
...
...
@@ -297,9 +297,9 @@ static void usage( const char *argv0 )
{
const
struct
test
*
test
;
fprintf
(
std
err
,
"Usage: %s test_name
\n
"
,
argv0
);
fprintf
(
std
err
,
"
\n
Valid test names:
\n
"
);
for
(
test
=
winetest_testlist
;
test
->
name
;
test
++
)
fprintf
(
std
err
,
" %s
\n
"
,
test
->
name
);
fprintf
(
std
out
,
"Usage: %s test_name
\n
"
,
argv0
);
fprintf
(
std
out
,
"
\n
Valid test names:
\n
"
);
for
(
test
=
winetest_testlist
;
test
->
name
;
test
++
)
fprintf
(
std
out
,
" %s
\n
"
,
test
->
name
);
exit_process
(
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