Commit 9012096b authored by Arkadiusz Hiler's avatar Arkadiusz Hiler Committed by Alexandre Julliard

Revert "ntdll/tests: Add test to check if GetTickCount is updated after sleeping.".

This reverts commit 4617f83f. The assumption that GetTickCount() gets updated after Sleep(1) holds only when there is no other software running on the system. If any program uses timeBeginPeriod() with values 1-15 then this assumption breaks. A lot of common user software calls timeBeginPeriod() - this includes browsers, media players, voice communicators, IDEs and store fronts. Signed-off-by: 's avatarArkadiusz Hiler <ahiler@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 47fe5317
......@@ -199,7 +199,7 @@ static void test_user_shared_data_time(void)
{
KSHARED_USER_DATA *user_shared_data = (void *)0x7ffe0000;
ULONGLONG t1, t2, t3;
int i = 0, changed = 0;
int i = 0;
i = 0;
do
......@@ -253,15 +253,6 @@ static void test_user_shared_data_time(void)
"USD InterruptTime / RtlQueryUnbiasedInterruptTime are out of order %s %s\n",
wine_dbgstr_longlong(t2), wine_dbgstr_longlong(t3));
}
for (i = 0; i < 100; i++)
{
t1 = GetTickCount();
Sleep(1);
t2 = GetTickCount();
if (t1 != t2) changed++;
}
todo_wine ok(changed >= 90, "tick count isn't updated after sleeping one millisecond (%d%% correct)\n", changed);
}
START_TEST(time)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment