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
c0dbfebe
Commit
c0dbfebe
authored
Nov 01, 2013
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: On Windows 8 DATE_LONGDATE does not output a leading 0 for the day.
parent
ee28dd80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
locale.c
dlls/kernel32/tests/locale.c
+4
-2
No files found.
dlls/kernel32/tests/locale.c
View file @
c0dbfebe
...
...
@@ -662,10 +662,12 @@ static void test_GetDateFormatA(void)
if
(
strncmp
(
buffer
,
Expected
,
strlen
(
Expected
))
&&
strncmp
(
buffer
,
"5/4/02"
,
strlen
(
Expected
))
!=
0
)
ok
(
0
,
"Expected '%s' or '5/4/02', got '%s'
\n
"
,
Expected
,
buffer
);
S
TRINGSA
(
"ddd',' MMM dd ''''yy"
,
"Saturday, May 04, 2002"
)
;
/* DATE_LONGDATE */
S
etLastError
(
0xdeadbeef
);
buffer
[
0
]
=
'\0'
;
/* DATE_LONGDATE */
ret
=
GetDateFormatA
(
lcid
,
NUO
|
DATE_LONGDATE
,
&
curtime
,
NULL
,
buffer
,
COUNTOF
(
buffer
));
ok
(
ret
,
"Expected ret != 0, got %d, error %d
\n
"
,
ret
,
GetLastError
());
EXPECT_LENA
;
EXPECT_EQA
;
ok
(
strcmp
(
buffer
,
"Saturday, May 04, 2002"
)
==
0
||
strcmp
(
buffer
,
"Saturday, May 4, 2002"
)
==
0
/* Win 8 */
,
"got an unexpected date string '%s'
\n
"
,
buffer
);
/* test for expected DATE_YEARMONTH behavior with null format */
/* NT4 returns ERROR_INVALID_FLAGS for DATE_YEARMONTH */
...
...
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