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
8afa5708
Commit
8afa5708
authored
Sep 07, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.applicationmodel/tests: Report success and skipped tests counters.
parent
9523dec5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
winrt_test.h
dlls/windows.applicationmodel/tests/winrt_test.h
+9
-0
No files found.
dlls/windows.applicationmodel/tests/winrt_test.h
View file @
8afa5708
...
@@ -35,8 +35,11 @@ struct winetest_shared_data
...
@@ -35,8 +35,11 @@ struct winetest_shared_data
BOOL
running_under_wine
;
BOOL
running_under_wine
;
BOOL
winetest_report_success
;
BOOL
winetest_report_success
;
BOOL
winetest_debug
;
BOOL
winetest_debug
;
LONG
successes
;
LONG
failures
;
LONG
failures
;
LONG
todo_successes
;
LONG
todo_failures
;
LONG
todo_failures
;
LONG
skipped
;
};
};
static
HANDLE
winrt_section
;
static
HANDLE
winrt_section
;
...
@@ -102,8 +105,11 @@ static void winrt_test_exit_( const char *file, int line )
...
@@ -102,8 +105,11 @@ static void winrt_test_exit_( const char *file, int line )
data
=
MapViewOfFile
(
winrt_section
,
FILE_MAP_READ
|
FILE_MAP_WRITE
,
0
,
0
,
1024
);
data
=
MapViewOfFile
(
winrt_section
,
FILE_MAP_READ
|
FILE_MAP_WRITE
,
0
,
0
,
1024
);
ok_
(
file
,
line
)(
!!
data
,
"MapViewOfFile failed, error %lu
\n
"
,
GetLastError
()
);
ok_
(
file
,
line
)(
!!
data
,
"MapViewOfFile failed, error %lu
\n
"
,
GetLastError
()
);
InterlockedAdd
(
&
winetest_successes
,
InterlockedExchange
(
&
data
->
successes
,
0
)
);
winetest_add_failures
(
InterlockedExchange
(
&
data
->
failures
,
0
)
);
winetest_add_failures
(
InterlockedExchange
(
&
data
->
failures
,
0
)
);
InterlockedAdd
(
&
winetest_todo_successes
,
InterlockedExchange
(
&
data
->
todo_successes
,
0
)
);
winetest_add_failures
(
InterlockedExchange
(
&
data
->
todo_failures
,
0
)
);
winetest_add_failures
(
InterlockedExchange
(
&
data
->
todo_failures
,
0
)
);
InterlockedAdd
(
&
winetest_skipped
,
InterlockedExchange
(
&
data
->
skipped
,
0
)
);
UnmapViewOfFile
(
data
);
UnmapViewOfFile
(
data
);
CloseHandle
(
winrt_section
);
CloseHandle
(
winrt_section
);
}
}
...
@@ -221,8 +227,11 @@ static inline void winrt_test_exit_( const char *file, int line )
...
@@ -221,8 +227,11 @@ static inline void winrt_test_exit_( const char *file, int line )
data
=
MapViewOfFile
(
winrt_section
,
FILE_MAP_READ
|
FILE_MAP_WRITE
,
0
,
0
,
1024
);
data
=
MapViewOfFile
(
winrt_section
,
FILE_MAP_READ
|
FILE_MAP_WRITE
,
0
,
0
,
1024
);
ok_
(
file
,
line
)(
!!
data
,
"MapViewOfFile failed, error %lu
\n
"
,
GetLastError
()
);
ok_
(
file
,
line
)(
!!
data
,
"MapViewOfFile failed, error %lu
\n
"
,
GetLastError
()
);
InterlockedExchangeAdd
(
&
data
->
successes
,
winetest_successes
);
InterlockedExchangeAdd
(
&
data
->
failures
,
winetest_failures
);
InterlockedExchangeAdd
(
&
data
->
failures
,
winetest_failures
);
InterlockedExchangeAdd
(
&
data
->
todo_successes
,
winetest_todo_successes
);
InterlockedExchangeAdd
(
&
data
->
todo_failures
,
winetest_todo_failures
);
InterlockedExchangeAdd
(
&
data
->
todo_failures
,
winetest_todo_failures
);
InterlockedExchangeAdd
(
&
data
->
skipped
,
winetest_skipped
);
UnmapViewOfFile
(
data
);
UnmapViewOfFile
(
data
);
CloseHandle
(
winrt_section
);
CloseHandle
(
winrt_section
);
...
...
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