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
a3b8fbc2
Commit
a3b8fbc2
authored
Feb 11, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
combase/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a7fd7c68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
Makefile.in
dlls/combase/tests/Makefile.in
+0
-1
roapi.c
dlls/combase/tests/roapi.c
+7
-7
string.c
dlls/combase/tests/string.c
+4
-4
No files found.
dlls/combase/tests/Makefile.in
View file @
a3b8fbc2
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
combase.dll
IMPORTS
=
combase
...
...
dlls/combase/tests/roapi.c
View file @
a3b8fbc2
...
...
@@ -37,27 +37,27 @@ static void test_ActivationFactories(void)
hr
=
WindowsCreateString
(
L"Windows.Data.Xml.Dom.XmlDocument"
,
ARRAY_SIZE
(
L"Windows.Data.Xml.Dom.XmlDocument"
)
-
1
,
&
str
);
ok
(
hr
==
S_OK
,
"
got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"
Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCreateString
(
L"Does.Not.Exist"
,
ARRAY_SIZE
(
L"Does.Not.Exist"
)
-
1
,
&
str2
);
ok
(
hr
==
S_OK
,
"
got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"
Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
RoInitialize
(
RO_INIT_MULTITHREADED
);
ok
(
hr
==
S_OK
,
"
got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"
Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
RoGetActivationFactory
(
str2
,
&
IID_IActivationFactory
,
(
void
**
)
&
factory
);
ok
(
hr
==
REGDB_E_CLASSNOTREG
,
"
got %08x
\n
"
,
hr
);
ok
(
hr
==
REGDB_E_CLASSNOTREG
,
"
Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
RoGetActivationFactory
(
str
,
&
IID_IActivationFactory
,
(
void
**
)
&
factory
);
todo_wine
ok
(
hr
==
S_OK
,
"
got %08x
\n
"
,
hr
);
todo_wine
ok
(
hr
==
S_OK
,
"
Unexpected hr %#lx.
\n
"
,
hr
);
if
(
factory
)
IActivationFactory_Release
(
factory
);
hr
=
RoActivateInstance
(
str2
,
&
inspect
);
ok
(
hr
==
REGDB_E_CLASSNOTREG
,
"
got %08x
\n
"
,
hr
);
ok
(
hr
==
REGDB_E_CLASSNOTREG
,
"
Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
RoActivateInstance
(
str
,
&
inspect
);
todo_wine
ok
(
hr
==
S_OK
,
"
got %08x
\n
"
,
hr
);
todo_wine
ok
(
hr
==
S_OK
,
"
UNexpected hr %#lx.
\n
"
,
hr
);
if
(
inspect
)
IInspectable_Release
(
inspect
);
...
...
dlls/combase/tests/string.c
View file @
a3b8fbc2
...
...
@@ -514,7 +514,7 @@ static void test_hstring_struct(void)
ok
(
prv
->
header
.
flags
==
0
,
"Expected 0 in flags field, got %#x.
\n
"
,
prv
->
header
.
flags
);
ok
(
prv
->
header
.
length
==
6
,
"Expected 6 in length field, got %u.
\n
"
,
prv
->
header
.
length
);
ok
(
prv
->
header
.
str
==
prv
->
buffer
,
"Expected str to point at buffer, instead pointing at %p.
\n
"
,
prv
->
header
.
str
);
ok
(
prv
->
refcount
==
1
,
"Expected 1 in refcount, got %u.
\n
"
,
prv
->
refcount
);
ok
(
prv
->
refcount
==
1
,
"Expected 1 in refcount, got %
l
u.
\n
"
,
prv
->
refcount
);
ok
(
wcscmp
(
input_string
,
prv
->
buffer
)
==
0
,
"Expected strings to match.
\n
"
);
ok
(
prv
->
buffer
[
prv
->
header
.
length
]
==
'\0'
,
"Expected buffer to be null terminated.
\n
"
);
...
...
@@ -522,13 +522,13 @@ static void test_hstring_struct(void)
prv2
=
CONTAINING_RECORD
(
str2
,
struct
hstring_private
,
header
);
ok
(
prv
->
refcount
==
2
,
"Expected 2 in refcount, got %u.
\n
"
,
prv
->
refcount
);
ok
(
prv2
->
refcount
==
2
,
"Expected 2 in refcount, got %u.
\n
"
,
prv2
->
refcount
);
ok
(
prv
->
refcount
==
2
,
"Expected 2 in refcount, got %
l
u.
\n
"
,
prv
->
refcount
);
ok
(
prv2
->
refcount
==
2
,
"Expected 2 in refcount, got %
l
u.
\n
"
,
prv2
->
refcount
);
ok
(
wcscmp
(
input_string
,
prv2
->
buffer
)
==
0
,
"Expected strings to match.
\n
"
);
ok
(
WindowsDeleteString
(
str
)
==
S_OK
,
"Failed to delete string.
\n
"
);
ok
(
prv
->
refcount
==
1
,
"Expected 1 in refcount, got %u.
\n
"
,
prv
->
refcount
);
ok
(
prv
->
refcount
==
1
,
"Expected 1 in refcount, got %
l
u.
\n
"
,
prv
->
refcount
);
ok
(
WindowsDeleteString
(
str
)
==
S_OK
,
"Failed to delete string.
\n
"
);
...
...
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