[KMTESTS:EX] Try to avoid some spurious test failures.

E.g. https://reactos.org/testman/detail.php?id=43906459&prev=43889679

This test depends on the timeout to be long enough for another thread to
actually have started waiting, which may take longer than 10ms under load.
This commit is contained in:
Thomas Faber 2019-09-08 08:01:23 +02:00
parent 5d4f13f625
commit acfea670fe
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -253,7 +253,7 @@ TestFastMutexConcurrent(
THREAD_DATA ThreadDataUnsafe;
THREAD_DATA ThreadDataTry;
LARGE_INTEGER Timeout;
Timeout.QuadPart = -10 * 1000 * 10; /* 10 ms */
Timeout.QuadPart = -50 * MILLISECOND;
InitThreadData(&ThreadData, Mutex, ExAcquireFastMutex, NULL, ExReleaseFastMutex);
InitThreadData(&ThreadData2, Mutex, ExAcquireFastMutex, NULL, ExReleaseFastMutex);