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
6f5578b0
Commit
6f5578b0
authored
Jan 13, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Mark more Windows 11 test failures as broken.
parent
94da4fc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
rtlstr.c
dlls/ntdll/tests/rtlstr.c
+11
-7
No files found.
dlls/ntdll/tests/rtlstr.c
View file @
6f5578b0
...
...
@@ -792,6 +792,7 @@ typedef struct {
int
res_buf_size
;
const
char
*
res_buf
;
NTSTATUS
result
;
int
broken_len
;
}
ustr2astr_t
;
static
const
ustr2astr_t
ustr2astr
[]
=
{
...
...
@@ -799,7 +800,7 @@ static const ustr2astr_t ustr2astr[] = {
{
10
,
12
,
12
,
"------------"
,
12
,
12
,
12
,
"abcdef"
,
TRUE
,
6
,
7
,
7
,
"abcdef"
,
STATUS_SUCCESS
},
{
0
,
2
,
12
,
"------------"
,
12
,
12
,
12
,
"abcdef"
,
TRUE
,
6
,
7
,
7
,
"abcdef"
,
STATUS_SUCCESS
},
{
10
,
12
,
12
,
NULL
,
12
,
12
,
12
,
"abcdef"
,
TRUE
,
6
,
7
,
7
,
"abcdef"
,
STATUS_SUCCESS
},
{
0
,
0
,
12
,
"------------"
,
12
,
12
,
12
,
"abcdef"
,
FALSE
,
6
,
0
,
0
,
""
,
STATUS_BUFFER_OVERFLOW
},
{
0
,
0
,
12
,
"------------"
,
12
,
12
,
12
,
"abcdef"
,
FALSE
,
6
,
0
,
0
,
""
,
STATUS_BUFFER_OVERFLOW
,
1
},
{
0
,
1
,
12
,
"------------"
,
12
,
12
,
12
,
"abcdef"
,
FALSE
,
0
,
1
,
1
,
""
,
STATUS_BUFFER_OVERFLOW
},
{
0
,
2
,
12
,
"------------"
,
12
,
12
,
12
,
"abcdef"
,
FALSE
,
1
,
2
,
2
,
"a"
,
STATUS_BUFFER_OVERFLOW
},
{
0
,
3
,
12
,
"------------"
,
12
,
12
,
12
,
"abcdef"
,
FALSE
,
2
,
3
,
3
,
"ab"
,
STATUS_BUFFER_OVERFLOW
},
...
...
@@ -849,7 +850,8 @@ static void test_RtlUnicodeStringToAnsiString(void)
ok
(
result
==
ustr2astr
[
test_num
].
result
,
"(test %d): RtlUnicodeStringToAnsiString(ansi, uni, %d) has result %lx, expected %lx
\n
"
,
test_num
,
ustr2astr
[
test_num
].
doalloc
,
result
,
ustr2astr
[
test_num
].
result
);
ok
(
ansi_str
.
Length
==
ustr2astr
[
test_num
].
res_Length
,
ok
(
ansi_str
.
Length
==
ustr2astr
[
test_num
].
res_Length
||
broken
(
ustr2astr
[
test_num
].
broken_len
&&
!
ansi_str
.
Length
)
/* win11 */
,
"(test %d): RtlUnicodeStringToAnsiString(ansi, uni, %d) ansi has Length %d, expected %d
\n
"
,
test_num
,
ustr2astr
[
test_num
].
doalloc
,
ansi_str
.
Length
,
ustr2astr
[
test_num
].
res_Length
);
ok
(
ansi_str
.
MaximumLength
==
ustr2astr
[
test_num
].
res_MaximumLength
,
...
...
@@ -1523,6 +1525,7 @@ typedef struct {
USHORT
MaximumLength
;
const
char
*
Buffer
;
NTSTATUS
result
;
int
broken_len
;
}
int2str_t
;
static
const
int2str_t
int2str
[]
=
{
...
...
@@ -1622,11 +1625,11 @@ static const int2str_t int2str[] = {
{
2
,
131072
,
18
,
19
,
"100000000000000000
\0
----------------"
,
STATUS_SUCCESS
},
{
2
,
131072
,
18
,
18
,
"100000000000000000-----------------"
,
STATUS_SUCCESS
},
{
16
,
0xffffffff
,
8
,
9
,
"FFFFFFFF
\0
--------------------------"
,
STATUS_SUCCESS
},
{
16
,
0xffffffff
,
8
,
8
,
"FFFFFFFF---------------------------"
,
STATUS_SUCCESS
},
/* No \0 term */
{
16
,
0xffffffff
,
8
,
7
,
"-----------------------------------"
,
STATUS_BUFFER_OVERFLOW
},
/* Too short */
{
16
,
0xffffffff
,
8
,
8
,
"FFFFFFFF---------------------------"
,
STATUS_SUCCESS
,
1
},
/* No \0 term */
{
16
,
0xffffffff
,
8
,
7
,
"-----------------------------------"
,
STATUS_BUFFER_OVERFLOW
,
1
},
/* Too short */
{
16
,
0xa
,
1
,
2
,
"A
\0
---------------------------------"
,
STATUS_SUCCESS
},
{
16
,
0xa
,
1
,
1
,
"A----------------------------------"
,
STATUS_SUCCESS
},
/* No \0 term */
{
16
,
0
,
1
,
0
,
"-----------------------------------"
,
STATUS_BUFFER_OVERFLOW
},
{
16
,
0xa
,
1
,
1
,
"A----------------------------------"
,
STATUS_SUCCESS
,
1
},
/* No \0 term */
{
16
,
0
,
1
,
0
,
"-----------------------------------"
,
STATUS_BUFFER_OVERFLOW
,
1
},
{
20
,
0xdeadbeef
,
0
,
9
,
"-----------------------------------"
,
STATUS_INVALID_PARAMETER
},
/* ill. base */
{
-
8
,
07654321
,
0
,
12
,
"-----------------------------------"
,
STATUS_INVALID_PARAMETER
},
/* neg. base */
};
...
...
@@ -1687,7 +1690,8 @@ static void one_RtlIntegerToUnicodeString_test(int test_num, const int2str_t *in
ok
(
memcmp
(
unicode_string
.
Buffer
,
expected_unicode_string
.
Buffer
,
STRI_BUFFER_LENGTH
*
sizeof
(
WCHAR
))
==
0
,
"(test %d): RtlIntegerToUnicodeString(%lu, %d, [out]) assigns string
\"
%s
\"
, expected:
\"
%s
\"\n
"
,
test_num
,
int2str
->
value
,
int2str
->
base
,
ansi_str
.
Buffer
,
expected_ansi_str
.
Buffer
);
ok
(
unicode_string
.
Length
==
expected_unicode_string
.
Length
,
ok
(
unicode_string
.
Length
==
expected_unicode_string
.
Length
||
broken
(
int2str
->
broken_len
&&
!
unicode_string
.
Length
)
/* win11 */
,
"(test %d): RtlIntegerToUnicodeString(%lu, %d, [out]) string has Length %d, expected: %d
\n
"
,
test_num
,
int2str
->
value
,
int2str
->
base
,
unicode_string
.
Length
,
expected_unicode_string
.
Length
);
ok
(
unicode_string
.
MaximumLength
==
expected_unicode_string
.
MaximumLength
,
...
...
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