Commit Graph

31 Commits

Author SHA1 Message Date
Huw Davies 2706b94dd0 kernel32/tests: Add a test for GetTickCount().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-14 18:23:55 +02:00
Huw Davies 71dc2514c3 kernel32: Forward GetSystemTimeAsFileTime() to NtQuerySystemTime().
This relies on FILETIME and LARGE_INTEGER having the same layout.

On an i7-8700 CPU @ 3.20GHz with HZ=1000 it cuts the call cost from
~18ns to ~12ns.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-15 19:23:48 +02:00
Marcus Meissner 0807725f41 kernel32: GetCalendarInfoW gets character sizes.
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 16:39:55 +02:00
Vincent Povirk 82a55e7bf8 kernel32/tests: Avoid testing for a hard-coded timezone name.
It turns out timezone names are localized, so this breaks on non-English
Windows 8 and 10 systems.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:06:55 +09:00
Vincent Povirk b922b55182 kernel32: Implement GetTimeZoneInformationForYear.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 00:00:32 +09:00
Vincent Povirk 2e3ce3a37d kernel32/tests: Add tests for GetTimeZoneInformationForYear.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-02 23:56:00 +09:00
Thomas Faller 98aa8528d5 kernel32/tests: Fix uninitialized memory of a test case. 2015-09-08 14:48:27 +09:00
Erich E. Hoover 5e817e93de kernel32: Implement GetSystemTimes. 2015-06-11 15:58:34 +09:00
Louis Lenders 305a73bcb5 kernel32/tests: Add tests for GetSystemTimes. 2015-06-11 15:58:15 +09:00
Francois Gouget 8efa0fb0c4 kernel32/tests: Fix compilation on systems that don't support nameless unions. 2015-05-25 14:34:07 +09:00
Martin Storsjo c9c5ceccb4 kernel32: Implement GetSystemTimePreciseAsFileTime.
This just falls back to doing the same as GetSystemTimeAsFileTime.
2015-05-20 17:28:37 +09:00
Nikolay Sivov 2c98d5b90c kernel32: Implement GetDynamicTimeZoneInformation(). 2015-05-11 15:39:24 +09:00
Akihiro Sagawa 80695cde4f kernel32: Return correct buffer size when returning DBCS characters. 2014-06-12 18:25:06 +02:00
Dmitry Timoshkov 193c837989 kernel32/tests: Fix time tests compilation with __WINESRC__ defined. 2013-10-17 20:29:29 +02:00
Piotr Caban e5a25ec5c5 kernel32: Fixed TIME_CompTimeZoneID behavior on dates close to New Year's Eve. 2012-12-10 17:36:25 +01:00
Alexandre Julliard 81183c1e20 kernel32: Fix the handling of CAL_ITWODIGITYEARMAX in GetCalendarInfo. 2011-06-08 16:18:26 +02:00
Juan Lang 2ca58402e7 kernel32: Add some parameter checking to FileTimeToDosDateTime. 2011-03-09 12:28:41 +01:00
Austin English 66e635adac kernel32/tests: Typo fixes. 2010-09-09 19:28:32 +02:00
Austin English 7f30ae6349 kernel32/tests: Be sure to terminate array. 2010-09-06 20:30:25 +02:00
Francois Gouget 5989534540 kernel32/tests: Use win_skip() to skip over unimplemented functionality. 2009-02-24 16:57:26 +01:00
James Hawkins 4d07047d4e kernel32: Fix a test that fails on win9x. 2008-04-23 14:29:50 +02:00
Francois Gouget 148061814c kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight saving changes' has been unset. 2008-02-15 09:56:12 +01:00
Paul Vriens e1f88e5f69 kernel32/tests: Skip not implemented functions. 2008-01-10 12:15:44 +01:00
Dmitry Timoshkov a76ef05c90 ntdll: Do not leave not initialized cached timezone information if a timezone doesn't have daylight saving rules. 2007-08-29 14:08:20 +02:00
Dmitry Timoshkov d666143f88 ntdll: Detect current time zone settings. 2007-08-21 12:40:37 +02:00
Dmitry Timoshkov 9472e04447 kernel32: Skip remainder of the time zone test if SystemTimeToTzSpecificLocalTime not present. 2007-07-31 12:35:00 +02:00
Dmitry Timoshkov a68059f4b7 kernel32: Add more tests for time zone info. 2007-07-30 13:39:10 +02:00
Bill Medland a70df444ae kernel32/tests: Boundary test cases for SystemTimeToFileTime and GetDateFormat. 2007-05-04 13:39:09 +02:00
Francois Gouget 14918e293a kernel32/tests: Use '%d' to print GetLastError(). 2007-01-04 11:26:22 +01:00
Michael Stefaniuc 8218440c20 kernel32/tests: Win64 printf format warning fixes. 2006-10-10 16:11:27 +02:00
Alexandre Julliard 489d87d1e5 kernel32: Renamed the kernel directory to kernel32.
Also get rid of the kernel/messages subdirectory.
2006-09-12 13:34:06 +02:00