mirror of
https://github.com/reactos/reactos.git
synced 2025-06-09 20:11:14 +00:00
[KMTESTS:KE]
- Make KeEvent test count constant to prevent it from appearing flaky in Testman svn path=/trunk/; revision=69282
This commit is contained in:
parent
619d1a2474
commit
8b7a8bb461
1 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
#include <kmt_test.h>
|
#include <kmt_test.h>
|
||||||
|
|
||||||
/* TODO: why does GCC have 3 tests less than MSVC?! */
|
|
||||||
|
|
||||||
#define CheckEvent(Event, ExpectedType, State, ExpectedWaitNext, \
|
#define CheckEvent(Event, ExpectedType, State, ExpectedWaitNext, \
|
||||||
Irql, ThreadList, ThreadCount) do \
|
Irql, ThreadList, ThreadCount) do \
|
||||||
{ \
|
{ \
|
||||||
|
@ -177,7 +175,10 @@ TestEventConcurrent(
|
||||||
while (!Threads[i].Signal)
|
while (!Threads[i].Signal)
|
||||||
{
|
{
|
||||||
Status = KeDelayExecutionThread(KernelMode, FALSE, &ShortTimeout);
|
Status = KeDelayExecutionThread(KernelMode, FALSE, &ShortTimeout);
|
||||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
if (Status != STATUS_SUCCESS)
|
||||||
|
{
|
||||||
|
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
CheckEvent(Event, Type, 0L, FALSE, OriginalIrql, ThreadObjects, i + 1);
|
CheckEvent(Event, Type, 0L, FALSE, OriginalIrql, ThreadObjects, i + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue