https://git.reactos.org/?p=reactos.git;a=commitdiff;h=acfea670fedbac5eef312c1cbff4726af8c482a6

commit acfea670fedbac5eef312c1cbff4726af8c482a6
Author:     Thomas Faber <[email protected]>
AuthorDate: Sun Sep 8 08:01:23 2019 +0200
Commit:     Thomas Faber <[email protected]>
CommitDate: Sun Sep 8 08:06:51 2019 +0200

    [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.
---
 modules/rostests/kmtests/ntos_ex/ExFastMutex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/rostests/kmtests/ntos_ex/ExFastMutex.c 
b/modules/rostests/kmtests/ntos_ex/ExFastMutex.c
index ffd3034ba8b..04de7a9a16f 100644
--- a/modules/rostests/kmtests/ntos_ex/ExFastMutex.c
+++ b/modules/rostests/kmtests/ntos_ex/ExFastMutex.c
@@ -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);

Reply via email to