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
9c345721
Commit
9c345721
authored
Nov 29, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Avoid winetest_strcmpW.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd06827b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mscoree.c
dlls/mscoree/tests/mscoree.c
+6
-6
No files found.
dlls/mscoree/tests/mscoree.c
View file @
9c345721
...
@@ -252,17 +252,17 @@ static void test_versioninfo(void)
...
@@ -252,17 +252,17 @@ static void test_versioninfo(void)
memset
(
version
,
0
,
sizeof
(
version
));
memset
(
version
,
0
,
sizeof
(
version
));
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0
,
NULL
,
0
,
0
,
NULL
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
&
size
);
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0
,
NULL
,
0
,
0
,
NULL
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
&
size
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
ok
(
!
w
inetest_strcmpW
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
ok
(
!
w
cscmp
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
/* With NULL-pointer for bufferlength, the buffer itself still gets filled with correct string */
/* With NULL-pointer for bufferlength, the buffer itself still gets filled with correct string */
memset
(
version
,
0
,
sizeof
(
version
));
memset
(
version
,
0
,
sizeof
(
version
));
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0
,
NULL
,
0
,
0
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0
,
NULL
,
0
,
0
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
ok
(
!
w
inetest_strcmpW
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
ok
(
!
w
cscmp
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
memset
(
version
,
0
,
sizeof
(
version
));
memset
(
version
,
0
,
sizeof
(
version
));
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0cap
,
NULL
,
0
,
0
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0cap
,
NULL
,
0
,
0
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
ok
(
!
w
inetest_strcmpW
(
version
,
v2_0cap
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0cap
));
ok
(
!
w
cscmp
(
version
,
v2_0cap
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0cap
));
/* Invalid Version and RUNTIME_INFO_UPGRADE_VERSION flag*/
/* Invalid Version and RUNTIME_INFO_UPGRADE_VERSION flag*/
memset
(
version
,
0
,
sizeof
(
version
));
memset
(
version
,
0
,
sizeof
(
version
));
...
@@ -271,7 +271,7 @@ static void test_versioninfo(void)
...
@@ -271,7 +271,7 @@ static void test_versioninfo(void)
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
/* .NET 1.1 may not be installed. */
/* .NET 1.1 may not be installed. */
ok
(
!
w
inetest_strcmpW
(
version
,
v1_1
)
||
!
winetest_strcmpW
(
version
,
v2_0
),
ok
(
!
w
cscmp
(
version
,
v1_1
)
||
!
wcscmp
(
version
,
v2_0
),
"version is %s , expected %s or %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v1_1
),
wine_dbgstr_w
(
v2_0
));
"version is %s , expected %s or %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v1_1
),
wine_dbgstr_w
(
v2_0
));
}
}
...
@@ -287,7 +287,7 @@ static void test_versioninfo(void)
...
@@ -287,7 +287,7 @@ static void test_versioninfo(void)
memset
(
version
,
0
,
sizeof
(
version
));
memset
(
version
,
0
,
sizeof
(
version
));
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v1_1_0
,
NULL
,
0
,
RUNTIME_INFO_UPGRADE_VERSION
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v1_1_0
,
NULL
,
0
,
RUNTIME_INFO_UPGRADE_VERSION
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
ok
(
!
w
inetest_strcmpW
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
ok
(
!
w
cscmp
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
memset
(
version
,
0
,
sizeof
(
version
));
memset
(
version
,
0
,
sizeof
(
version
));
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0_0
,
NULL
,
0
,
0
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0_0
,
NULL
,
0
,
0
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
...
@@ -296,7 +296,7 @@ static void test_versioninfo(void)
...
@@ -296,7 +296,7 @@ static void test_versioninfo(void)
memset
(
version
,
0
,
sizeof
(
version
));
memset
(
version
,
0
,
sizeof
(
version
));
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0_0
,
NULL
,
0
,
RUNTIME_INFO_UPGRADE_VERSION
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
hr
=
pGetRequestedRuntimeInfo
(
NULL
,
v2_0_0
,
NULL
,
0
,
RUNTIME_INFO_UPGRADE_VERSION
,
path
,
MAX_PATH
,
&
path_len
,
version
,
MAX_PATH
,
NULL
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
todo_wine_if
(
!
has_mono
)
ok
(
hr
==
S_OK
,
"GetRequestedRuntimeInfo returned %08x
\n
"
,
hr
);
ok
(
!
w
inetest_strcmpW
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
ok
(
!
w
cscmp
(
version
,
v2_0
),
"version is %s , expected %s
\n
"
,
wine_dbgstr_w
(
version
),
wine_dbgstr_w
(
v2_0
));
hr
=
pCorIsLatestSvc
(
NULL
,
NULL
);
hr
=
pCorIsLatestSvc
(
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"CorIsLatestSvc returned %08x
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"CorIsLatestSvc returned %08x
\n
"
,
hr
);
...
...
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