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
854eb999
Commit
854eb999
authored
Nov 21, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Extend ucrtbase's undname tests.
Renumbering entries' comment to match actual output. Adding ability to pass flags. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
9f363a69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
cpp.c
dlls/ucrtbase/tests/cpp.c
+21
-6
No files found.
dlls/ucrtbase/tests/cpp.c
View file @
854eb999
...
...
@@ -192,21 +192,36 @@ static void test___std_type_info(void)
static
void
test___unDName
(
void
)
{
static
struct
{
const
char
*
in
;
const
char
*
out
;
const
char
*
broken
;}
und_tests
[]
=
static
struct
{
const
char
*
in
;
const
char
*
out
;
const
char
*
broken
;
unsigned
int
flags
;
}
und_tests
[]
=
{
/*
1
*/
{
"??4QDnsDomainNameRecord@@QAEAAV0@$$QAV0@@Z"
,
/*
0
*/
{
"??4QDnsDomainNameRecord@@QAEAAV0@$$QAV0@@Z"
,
"public: class QDnsDomainNameRecord & __thiscall QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord &&)"
},
/*
2
*/
{
"??4QDnsDomainNameRecord@@QAEAAV0@$$QEAV0@@Z"
,
/*
1
*/
{
"??4QDnsDomainNameRecord@@QAEAAV0@$$QEAV0@@Z"
,
"public: class QDnsDomainNameRecord & __thiscall QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord && __ptr64)"
},
/*
3
*/
{
"??__K_l@@YA?AUCC@@I@Z"
,
"struct CC __cdecl operator
\"\"
_l(unsigned int)"
,
/*
2
*/
{
"??__K_l@@YA?AUCC@@I@Z"
,
"struct CC __cdecl operator
\"\"
_l(unsigned int)"
,
"??__K_l@@YA?AUCC@@I@Z"
/* W10 1507 fails on this :-( */
},
/* 3 */
{
"?meth@Q@@QEGBA?AV1@XZ"
,
"public: class Q __cdecl Q::meth(void)const __ptr64& "
,
"public: ?? :: ?? ::XZ::V1"
/* W10 1507 fails on this :-( */
},
/* 4 */
{
"?meth@Q@@QEHAA?AV1@XZ"
,
"public: class Q __cdecl Q::meth(void) __ptr64&& "
,
"public: ?? :: ?? ::XZ::V1"
/* W10 1507 fails on this :-( */
},
/* 5 */
{
"?meth@Q@@QEGBA?AV1@XZ"
,
"public: class Q Q::meth(void)const & "
,
"public: ?? :: ?? ::XZ::V1"
/* W10 1507 fails on this :-( */
,
0x02
/*UNDNAME_NO_MS_KEYWORDS*/
},
/* 6 */
{
"?meth@Q@@QEHAA?AV1@XZ"
,
"public: class Q Q::meth(void)&& "
,
"public: ?? :: ?? ::XZ::V1"
/* W10 1507 fails on this :-( */
,
0x02
/*UNDNAME_NO_MS_KEYWORDS*/
},
};
unsigned
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
und_tests
);
i
++
)
{
char
*
name
=
p___unDName
(
0
,
und_tests
[
i
].
in
,
0
,
malloc
,
free
,
0
);
char
*
name
=
p___unDName
(
0
,
und_tests
[
i
].
in
,
0
,
malloc
,
free
,
und_tests
[
i
].
flags
);
todo_wine_if
(
i
>=
3
)
ok
(
!
strcmp
(
name
,
und_tests
[
i
].
out
)
||
(
broken
(
und_tests
[
i
].
broken
&&
!
strcmp
(
und_tests
[
i
].
broken
,
name
)
)),
broken
(
und_tests
[
i
].
broken
&&
!
strcmp
(
und_tests
[
i
].
broken
,
name
)),
"unDName returned %s for #%u
\n
"
,
wine_dbgstr_a
(
name
),
i
);
free
(
name
);
}
...
...
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