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
223b92fc
Commit
223b92fc
authored
Oct 05, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Win64 printf format warning fixes.
parent
426d27cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
dlls/msvcrt/tests/Makefile.in
+0
-1
time.c
dlls/msvcrt/tests/time.c
+7
-7
No files found.
dlls/msvcrt/tests/Makefile.in
View file @
223b92fc
...
...
@@ -6,7 +6,6 @@ TESTDLL = msvcrt.dll
IMPORTS
=
msvcrt kernel32
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(TOPSRCDIR)
/include/msvcrt
-I
$(SRCDIR)
/..
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
cpp.c
\
...
...
dlls/msvcrt/tests/time.c
View file @
223b92fc
...
...
@@ -75,13 +75,13 @@ static void test_mktime(void)
sav_tm
=
my_tm
;
local_time
=
mktime
(
&
my_tm
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"mktime returned 0x%08
l
x
\n
"
,(
DWORD
)
local_time
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"mktime returned 0x%08x
\n
"
,(
DWORD
)
local_time
);
/* now test some unnormalized struct tm's */
my_tm
=
sav_tm
;
my_tm
.
tm_sec
+=
60
;
my_tm
.
tm_min
-=
1
;
local_time
=
mktime
(
&
my_tm
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08
l
x
\n
"
,(
DWORD
)
local_time
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08x
\n
"
,(
DWORD
)
local_time
);
ok
(
my_tm
.
tm_year
==
sav_tm
.
tm_year
&&
my_tm
.
tm_mon
==
sav_tm
.
tm_mon
&&
my_tm
.
tm_mday
==
sav_tm
.
tm_mday
&&
my_tm
.
tm_hour
==
sav_tm
.
tm_hour
&&
my_tm
.
tm_sec
==
sav_tm
.
tm_sec
...
...
@@ -94,7 +94,7 @@ static void test_mktime(void)
my_tm
.
tm_min
-=
60
;
my_tm
.
tm_hour
+=
1
;
local_time
=
mktime
(
&
my_tm
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08
l
x
\n
"
,(
DWORD
)
local_time
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08x
\n
"
,(
DWORD
)
local_time
);
ok
(
my_tm
.
tm_year
==
sav_tm
.
tm_year
&&
my_tm
.
tm_mon
==
sav_tm
.
tm_mon
&&
my_tm
.
tm_mday
==
sav_tm
.
tm_mday
&&
my_tm
.
tm_hour
==
sav_tm
.
tm_hour
&&
my_tm
.
tm_sec
==
sav_tm
.
tm_sec
...
...
@@ -107,7 +107,7 @@ static void test_mktime(void)
my_tm
.
tm_mon
-=
12
;
my_tm
.
tm_year
+=
1
;
local_time
=
mktime
(
&
my_tm
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08
l
x
\n
"
,(
DWORD
)
local_time
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08x
\n
"
,(
DWORD
)
local_time
);
ok
(
my_tm
.
tm_year
==
sav_tm
.
tm_year
&&
my_tm
.
tm_mon
==
sav_tm
.
tm_mon
&&
my_tm
.
tm_mday
==
sav_tm
.
tm_mday
&&
my_tm
.
tm_hour
==
sav_tm
.
tm_hour
&&
my_tm
.
tm_sec
==
sav_tm
.
tm_sec
...
...
@@ -120,7 +120,7 @@ static void test_mktime(void)
my_tm
.
tm_mon
+=
12
;
my_tm
.
tm_year
-=
1
;
local_time
=
mktime
(
&
my_tm
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08
l
x
\n
"
,(
DWORD
)
local_time
);
ok
(((
DWORD
)
local_time
==
SECSPERDAY
),
"Unnormalized mktime returned 0x%08x
\n
"
,(
DWORD
)
local_time
);
ok
(
my_tm
.
tm_year
==
sav_tm
.
tm_year
&&
my_tm
.
tm_mon
==
sav_tm
.
tm_mon
&&
my_tm
.
tm_mday
==
sav_tm
.
tm_mday
&&
my_tm
.
tm_hour
==
sav_tm
.
tm_hour
&&
my_tm
.
tm_sec
==
sav_tm
.
tm_sec
...
...
@@ -133,7 +133,7 @@ static void test_mktime(void)
my_tm
=
sav_tm
;
my_tm
.
tm_year
-=
1
;
local_time
=
mktime
(
&
my_tm
);
ok
((
local_time
==
-
1
),
"(bad time) mktime returned 0x%08
l
x
\n
"
,(
DWORD
)
local_time
);
ok
((
local_time
==
-
1
),
"(bad time) mktime returned 0x%08x
\n
"
,(
DWORD
)
local_time
);
my_tm
=
sav_tm
;
/* TEST that we are independent from the TZ variable */
...
...
@@ -141,7 +141,7 @@ static void test_mktime(void)
_snprintf
(
TZ_env
,
255
,
"TZ=%s"
,(
getenv
(
"TZ"
)
?
getenv
(
"TZ"
)
:
""
));
putenv
(
"TZ=GMT"
);
nulltime
=
mktime
(
&
my_tm
);
ok
(((
DWORD
)
nulltime
==
SECSPERDAY
),
"mktime returned 0x%08
l
x
\n
"
,(
DWORD
)
nulltime
);
ok
(((
DWORD
)
nulltime
==
SECSPERDAY
),
"mktime returned 0x%08x
\n
"
,(
DWORD
)
nulltime
);
putenv
(
TZ_env
);
}
static
void
test_localtime
(
void
)
...
...
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