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
6d7aeede
Commit
6d7aeede
authored
Feb 07, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtworkq/tests: Build without WINE_NO_LONG_TYPES.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6446382c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
Makefile.in
dlls/rtworkq/tests/Makefile.in
+0
-1
rtworkq.c
dlls/rtworkq/tests/rtworkq.c
+16
-16
No files found.
dlls/rtworkq/tests/Makefile.in
View file @
6d7aeede
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
rtworkq.dll
IMPORTS
=
rtworkq ole32
...
...
dlls/rtworkq/tests/rtworkq.c
View file @
6d7aeede
...
...
@@ -33,72 +33,72 @@ static void test_platform_init(void)
/* Startup initializes MTA. */
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
CO_E_NOTINITIALIZED
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
CO_E_NOTINITIALIZED
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
hr
=
RtwqStartup
();
ok
(
hr
==
S_OK
,
"Failed to start up, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to start up, hr %#
l
x.
\n
"
,
hr
);
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
S_OK
||
broken
(
FAILED
(
hr
))
/* Win8 */
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
FAILED
(
hr
))
/* Win8 */
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
ok
(
apttype
==
APTTYPE_MTA
&&
qualifier
==
APTTYPEQUALIFIER_IMPLICIT_MTA
,
"Unexpected apartment type %d, qualifier %d.
\n
"
,
apttype
,
qualifier
);
hr
=
RtwqShutdown
();
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#
l
x.
\n
"
,
hr
);
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
CO_E_NOTINITIALIZED
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
CO_E_NOTINITIALIZED
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
/* Try with STA initialized before startup. */
hr
=
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
);
ok
(
hr
==
S_OK
,
"Failed to initialize, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to initialize, hr %#
l
x.
\n
"
,
hr
);
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
ok
(
apttype
==
APTTYPE_MAINSTA
&&
qualifier
==
APTTYPEQUALIFIER_NONE
,
"Unexpected apartment type %d, qualifier %d.
\n
"
,
apttype
,
qualifier
);
hr
=
RtwqStartup
();
ok
(
hr
==
S_OK
,
"Failed to start up, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to start up, hr %#
l
x.
\n
"
,
hr
);
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
ok
(
apttype
==
APTTYPE_MAINSTA
&&
qualifier
==
APTTYPEQUALIFIER_NONE
,
"Unexpected apartment type %d, qualifier %d.
\n
"
,
apttype
,
qualifier
);
hr
=
RtwqShutdown
();
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#
l
x.
\n
"
,
hr
);
CoUninitialize
();
/* Startup -> init main STA -> uninitialize -> shutdown */
hr
=
RtwqStartup
();
ok
(
hr
==
S_OK
,
"Failed to start up, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to start up, hr %#
l
x.
\n
"
,
hr
);
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
S_OK
||
broken
(
FAILED
(
hr
))
/* Win8 */
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
FAILED
(
hr
))
/* Win8 */
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
ok
(
apttype
==
APTTYPE_MTA
&&
qualifier
==
APTTYPEQUALIFIER_IMPLICIT_MTA
,
"Unexpected apartment type %d, qualifier %d.
\n
"
,
apttype
,
qualifier
);
hr
=
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
);
ok
(
hr
==
S_OK
,
"Failed to initialize, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to initialize, hr %#
l
x.
\n
"
,
hr
);
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
ok
(
apttype
==
APTTYPE_MAINSTA
&&
qualifier
==
APTTYPEQUALIFIER_NONE
,
"Unexpected apartment type %d, qualifier %d.
\n
"
,
apttype
,
qualifier
);
CoUninitialize
();
hr
=
CoGetApartmentType
(
&
apttype
,
&
qualifier
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#
l
x.
\n
"
,
hr
);
ok
(
apttype
==
APTTYPE_MTA
&&
qualifier
==
APTTYPEQUALIFIER_IMPLICIT_MTA
,
"Unexpected apartment type %d, qualifier %d.
\n
"
,
apttype
,
qualifier
);
hr
=
RtwqShutdown
();
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#
l
x.
\n
"
,
hr
);
}
START_TEST
(
rtworkq
)
...
...
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