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
7679d96c
Commit
7679d96c
authored
Oct 11, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameux/tests: Run the game explorer tests in a multithreaded apartment as well.
parent
95ede766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
13 deletions
+25
-13
gameexplorer.c
dlls/gameux/tests/gameexplorer.c
+25
-13
No files found.
dlls/gameux/tests/gameexplorer.c
View file @
7679d96c
...
...
@@ -656,30 +656,42 @@ static void test_install_uninstall_game(void)
}
}
START_TEST
(
gameexplorer
)
static
void
run_tests
(
void
)
{
HRESULT
r
;
BOOL
gameExplorerAvailable
=
FALSE
;
BOOL
gameExplorer2Available
=
FALSE
;
test_create
(
&
gameExplorerAvailable
,
&
gameExplorer2Available
);
if
(
gameExplorerAvailable
)
test_add_remove_game
();
if
(
gameExplorer2Available
)
test_install_uninstall_game
();
}
START_TEST
(
gameexplorer
)
{
if
(
_loadDynamicRoutines
())
{
r
=
CoInitialize
(
NULL
);
ok
(
r
==
S_OK
,
"failed to init COM
\n
"
);
test_create
(
&
gameExplorerAvailable
,
&
gameExplorer2Available
);
HRESULT
hr
;
if
(
gameExplorerAvailable
)
test_add_remove_game
();
hr
=
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
);
ok
(
hr
==
S_OK
,
"Failed to initialize COM, hr %#x.
\n
"
,
hr
);
trace
(
"Running apartment threaded tests.
\n
"
);
run_tests
();
if
(
SUCCEEDED
(
hr
))
CoUninitialize
();
if
(
gameExplorer2Available
)
test_install_uninstall_game
();
hr
=
CoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
ok
(
hr
==
S_OK
,
"Failed to initialize COM, hr %#x.
\n
"
,
hr
);
trace
(
"Running multithreaded tests.
\n
"
);
run_tests
();
if
(
SUCCEEDED
(
hr
))
CoUninitialize
();
}
else
/* this is not a failure, because both procedures loaded by address
* are always available on systems which has gameux.dll */
win_skip
(
"too old system, cannot load required dynamic procedures
\n
"
);
CoUninitialize
();
}
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