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
4009de36
Commit
4009de36
authored
Oct 24, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use symbolic names when possible.
parent
816f9932
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
rtlstr.c
dlls/ntdll/tests/rtlstr.c
+11
-5
No files found.
dlls/ntdll/tests/rtlstr.c
View file @
4009de36
...
...
@@ -1686,15 +1686,17 @@ static void test_RtlIsTextUnicode(void)
flags
=
IS_TEXT_UNICODE_UNICODE_MASK
;
ok
(
pRtlIsTextUnicode
(
unicode
,
sizeof
(
unicode
),
&
flags
),
"Text should not pass a Unicode
\n
"
);
todo_wine
ok
(
flags
==
0x6
,
"Expected flags 0x6, obtained %d
\n
"
,
flags
);
todo_wine
ok
(
flags
==
(
IS_TEXT_UNICODE_STATISTICS
|
IS_TEXT_UNICODE_CONTROLS
),
"Expected flags 0x6, obtained %x
\n
"
,
flags
);
flags
=
IS_TEXT_UNICODE_REVERSE_MASK
;
ok
(
!
pRtlIsTextUnicode
(
unicode
,
sizeof
(
unicode
),
&
flags
),
"Text should not pass reverse Unicode tests
\n
"
);
ok
(
flags
==
0
,
"Expected flags 0, obtained %
d
\n
"
,
flags
);
ok
(
flags
==
0
,
"Expected flags 0, obtained %
x
\n
"
,
flags
);
flags
=
IS_TEXT_UNICODE_ODD_LENGTH
;
ok
(
!
pRtlIsTextUnicode
(
unicode
,
sizeof
(
unicode
)
-
1
,
&
flags
),
"Odd length test should have passed
\n
"
);
ok
(
flags
==
IS_TEXT_UNICODE_ODD_LENGTH
,
"Expected flags 0x200, obtained %
d
\n
"
,
flags
);
ok
(
flags
==
IS_TEXT_UNICODE_ODD_LENGTH
,
"Expected flags 0x200, obtained %
x
\n
"
,
flags
);
be_unicode
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
unicode
)
+
sizeof
(
WCHAR
));
be_unicode
[
0
]
=
0xfffe
;
...
...
@@ -1707,11 +1709,15 @@ static void test_RtlIsTextUnicode(void)
flags
=
IS_TEXT_UNICODE_REVERSE_MASK
;
ok
(
!
pRtlIsTextUnicode
(
&
be_unicode
[
1
],
sizeof
(
unicode
),
&
flags
),
"Reverse endian should be Unicode
\n
"
);
todo_wine
ok
(
flags
==
0x70
,
"Expected flags 0x70, obtained %x
\n
"
,
flags
);
todo_wine
ok
(
flags
==
(
IS_TEXT_UNICODE_REVERSE_ASCII16
|
IS_TEXT_UNICODE_REVERSE_STATISTICS
|
IS_TEXT_UNICODE_REVERSE_CONTROLS
),
"Expected flags 0x70, obtained %x
\n
"
,
flags
);
flags
=
IS_TEXT_UNICODE_REVERSE_MASK
;
ok
(
!
pRtlIsTextUnicode
(
be_unicode
,
sizeof
(
unicode
)
+
2
,
&
flags
),
"Reverse endian should be Unicode
\n
"
);
todo_wine
ok
(
flags
==
0xc0
,
"Expected flags 0xc0, obtained %x
\n
"
,
flags
);
todo_wine
ok
(
flags
==
(
IS_TEXT_UNICODE_REVERSE_CONTROLS
|
IS_TEXT_UNICODE_REVERSE_SIGNATURE
),
"Expected flags 0xc0, obtained %x
\n
"
,
flags
);
HeapFree
(
GetProcessHeap
(),
0
,
be_unicode
);
}
...
...
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