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
c19f8864
Commit
c19f8864
authored
Sep 26, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Do not report flaky tests as failures by default.
parent
e28d2462
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test.h
include/wine/test.h
+6
-6
No files found.
include/wine/test.h
View file @
c19f8864
...
...
@@ -44,8 +44,8 @@ extern int winetest_time;
/* running in interactive mode? */
extern
int
winetest_interactive
;
/*
always count flaky tests as successful
(BOOL) */
extern
int
winetest_
allow
_flaky
;
/*
report failed flaky tests as failures
(BOOL) */
extern
int
winetest_
report
_flaky
;
/* report successful tests (BOOL) */
extern
int
winetest_report_success
;
...
...
@@ -207,8 +207,8 @@ int winetest_interactive = 0;
/* current platform */
const
char
*
winetest_platform
=
"windows"
;
/*
always count flaky tests as successful
(BOOL) */
int
winetest_
allow_flaky
;
/*
report failed flaky tests as failures
(BOOL) */
int
winetest_
report_flaky
=
0
;
/* report successful tests (BOOL) */
int
winetest_report_success
=
0
;
...
...
@@ -731,7 +731,7 @@ static int run_test( const char *name )
winetest_print_unlock
();
}
status
=
failures
+
todo_failures
;
if
(
!
winetest_allow
_flaky
)
status
+=
flaky_failures
;
if
(
winetest_report
_flaky
)
status
+=
flaky_failures
;
if
(
status
>
255
)
status
=
255
;
return
status
;
}
...
...
@@ -807,7 +807,7 @@ int main( int argc, char **argv )
}
if
(
GetEnvironmentVariableA
(
"WINETEST_DEBUG"
,
p
,
sizeof
(
p
)
))
winetest_debug
=
atoi
(
p
);
if
(
GetEnvironmentVariableA
(
"WINETEST_INTERACTIVE"
,
p
,
sizeof
(
p
)
))
winetest_interactive
=
atoi
(
p
);
if
(
GetEnvironmentVariableA
(
"WINETEST_
ALLOW_FLAKY"
,
p
,
sizeof
(
p
)
))
winetest_allow
_flaky
=
atoi
(
p
);
if
(
GetEnvironmentVariableA
(
"WINETEST_
REPORT_FLAKY"
,
p
,
sizeof
(
p
)
))
winetest_report
_flaky
=
atoi
(
p
);
if
(
GetEnvironmentVariableA
(
"WINETEST_REPORT_SUCCESS"
,
p
,
sizeof
(
p
)
))
winetest_report_success
=
atoi
(
p
);
if
(
GetEnvironmentVariableA
(
"WINETEST_TIME"
,
p
,
sizeof
(
p
)
))
winetest_time
=
atoi
(
p
);
winetest_last_time
=
winetest_start_time
=
GetTickCount
();
...
...
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