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
4751ff2b
Commit
4751ff2b
authored
May 30, 2004
by
Robert Reif
Committed by
Alexandre Julliard
May 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NT 4.0 doesn't support MAP_EXPAND_LIGATURES so skip test if it returns
ERROR_INVALID_FLAGS.
parent
08183bdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
27 deletions
+33
-27
locale.c
dlls/kernel/tests/locale.c
+33
-27
No files found.
dlls/kernel/tests/locale.c
View file @
4751ff2b
...
...
@@ -1468,20 +1468,23 @@ static void test_FoldStringA(void)
/* MAP_EXPAND_LIGATURES */
SetLastError
(
0
);
ret
=
pFoldStringA
(
MAP_EXPAND_LIGATURES
,
ligatures_src
,
-
1
,
dst
,
256
);
EXPECT_LEN
(
sizeof
(
ligatures_dst
));
EXPECT_VALID
;
ok
(
strcmp
(
dst
,
ligatures_dst
)
==
0
,
"MAP_EXPAND_LIGATURES: Expected '%s', got '%s'
\n
"
,
ligatures_dst
,
dst
)
;
for
(
i
=
1
;
i
<
256
;
i
++
)
{
if
(
!
strchr
(
ligatures_src
,
i
)
)
/* NT 4.0 doesnt support MAP_EXPAND_LIGATURES */
if
(
ret
!=
ERROR_INVALID_FLAGS
)
{
EXPECT_LEN
(
sizeof
(
ligatures_dst
));
EXPECT_VALID
;
ok
(
strcmp
(
dst
,
ligatures_dst
)
==
0
,
"MAP_EXPAND_LIGATURES: Expected '%s', got '%s'
\n
"
,
ligatures_dst
,
dst
);
for
(
i
=
1
;
i
<
256
;
i
++
)
{
src
[
0
]
=
i
;
src
[
1
]
=
'\0'
;
SetLastError
(
0
);
ret
=
pFoldStringA
(
MAP_EXPAND_LIGATURES
,
src
,
-
1
,
dst
,
256
);
EXPECT_LEN
(
2
);
EXPECT_VALID
;
ok
(
dst
[
0
]
==
src
[
0
],
"MAP_EXPAND_LIGATURES: Expected '%s', got '%s'
\n
"
,
src
,
dst
);
if
(
!
strchr
(
ligatures_src
,
i
))
{
src
[
0
]
=
i
;
src
[
1
]
=
'\0'
;
SetLastError
(
0
);
ret
=
pFoldStringA
(
MAP_EXPAND_LIGATURES
,
src
,
-
1
,
dst
,
256
);
EXPECT_LEN
(
2
);
EXPECT_VALID
;
ok
(
dst
[
0
]
==
src
[
0
],
"MAP_EXPAND_LIGATURES: Expected '%s', got '%s'
\n
"
,
src
,
dst
);
}
}
}
...
...
@@ -1852,21 +1855,24 @@ static void test_FoldStringW(void)
/* MAP_EXPAND_LIGATURES */
SetLastError
(
0
);
ret
=
pFoldStringW
(
MAP_EXPAND_LIGATURES
,
ligatures_src
,
-
1
,
dst
,
256
);
EXPECT_LEN
(
sizeof
(
ligatures_dst
)
/
sizeof
(
ligatures_dst
[
0
]));
EXPECT_VALID
;
ok
(
!
memcmp
(
dst
,
ligatures_dst
,
sizeof
(
ligatures_dst
)),
"MAP_EXPAND_LIGATURES: Expanded incorrectly
\n
"
)
;
for
(
i
=
1
;
i
<=
0xffff
;
i
++
)
{
if
(
!
strchrW
(
ligatures_src
,
i
)
)
/* NT 4.0 doesnt support MAP_EXPAND_LIGATURES */
if
(
ret
!=
ERROR_INVALID_FLAGS
)
{
EXPECT_LEN
(
sizeof
(
ligatures_dst
)
/
sizeof
(
ligatures_dst
[
0
]));
EXPECT_VALID
;
ok
(
!
memcmp
(
dst
,
ligatures_dst
,
sizeof
(
ligatures_dst
)),
"MAP_EXPAND_LIGATURES: Expanded incorrectly
\n
"
);
for
(
i
=
1
;
i
<=
0xffff
;
i
++
)
{
src
[
0
]
=
i
;
src
[
1
]
=
'\0'
;
SetLastError
(
0
);
ret
=
pFoldStringW
(
MAP_EXPAND_LIGATURES
,
src
,
-
1
,
dst
,
256
);
EXPECT_LEN
(
2
);
EXPECT_VALID
;
ok
(
dst
[
0
]
==
src
[
0
],
"MAP_EXPAND_LIGATURES: 0x%02x : Expected 0x%02x, got 0x%02x
\n
"
,
i
,
src
[
0
],
dst
[
0
]);
if
(
!
strchrW
(
ligatures_src
,
i
))
{
src
[
0
]
=
i
;
src
[
1
]
=
'\0'
;
SetLastError
(
0
);
ret
=
pFoldStringW
(
MAP_EXPAND_LIGATURES
,
src
,
-
1
,
dst
,
256
);
EXPECT_LEN
(
2
);
EXPECT_VALID
;
ok
(
dst
[
0
]
==
src
[
0
],
"MAP_EXPAND_LIGATURES: 0x%02x : Expected 0x%02x, got 0x%02x
\n
"
,
i
,
src
[
0
],
dst
[
0
]);
}
}
}
...
...
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