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
6a6263c8
Commit
6a6263c8
authored
Feb 18, 2024
by
Daniel Lehman
Committed by
Alexandre Julliard
Feb 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Include locale in ok message.
parent
588db48b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
string.c
dlls/msvcrt/tests/string.c
+12
-6
No files found.
dlls/msvcrt/tests/string.c
View file @
6a6263c8
...
...
@@ -4197,11 +4197,14 @@ static void test__tcsncoll(void)
ret
=
_strncoll
(
str1
,
str2
,
tests
[
i
].
count
);
if
(
!
tests
[
i
].
exp
)
ok
(
!
ret
,
"expected 0, got %d for %s, %s, %d
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
);
ok
(
!
ret
,
"expected 0, got %d for %s, %s, %d for locale %s
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
,
tests
[
i
].
locale
);
else
if
(
tests
[
i
].
exp
<
0
)
ok
(
ret
<
0
,
"expected < 0, got %d for %s, %s, %d
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
);
ok
(
ret
<
0
,
"expected < 0, got %d for %s, %s, %d for locale %s
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
,
tests
[
i
].
locale
);
else
ok
(
ret
>
0
,
"expected > 0, got %d for %s, %s, %d
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
);
ok
(
ret
>
0
,
"expected > 0, got %d for %s, %s, %d for locale %s
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
,
tests
[
i
].
locale
);
memset
(
str1W
,
0xee
,
sizeof
(
str1W
));
len
=
mbstowcs
(
str1W
,
str1
,
ARRAY_SIZE
(
str1W
));
...
...
@@ -4213,11 +4216,14 @@ static void test__tcsncoll(void)
ret
=
_wcsncoll
(
str1W
,
str2W
,
tests
[
i
].
count
);
if
(
!
tests
[
i
].
exp
)
ok
(
!
ret
,
"expected 0, got %d for %s, %s, %d
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
);
ok
(
!
ret
,
"expected 0, got %d for %s, %s, %d for locale %s
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
,
tests
[
i
].
locale
);
else
if
(
tests
[
i
].
exp
<
0
)
ok
(
ret
<
0
,
"expected < 0, got %d for %s, %s, %d
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
);
ok
(
ret
<
0
,
"expected < 0, got %d for %s, %s, %d for locale %s
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
,
tests
[
i
].
locale
);
else
ok
(
ret
>
0
,
"expected > 0, got %d for %s, %s, %d
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
);
ok
(
ret
>
0
,
"expected > 0, got %d for %s, %s, %d for locale %s
\n
"
,
ret
,
str1
,
str2
,
(
int
)
tests
[
i
].
count
,
tests
[
i
].
locale
);
}
}
...
...
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