mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[KMTESTS] Fix tests for uniprocessor checked build
This commit is contained in:
parent
e312a40ae2
commit
8d665f8959
1 changed files with 8 additions and 4 deletions
|
@ -167,12 +167,16 @@ BOOLEAN TryNoRaise(PKSPIN_LOCK SpinLock, PCHECK_DATA CheckData) {
|
|||
{ \
|
||||
PKTHREAD Thread = KeGetCurrentThread(); \
|
||||
(VOID)Thread; \
|
||||
if (KmtIsMultiProcessorBuild) \
|
||||
if (KmtIsMultiProcessorBuild || KmtIsCheckedBuild) \
|
||||
{ \
|
||||
ok_eq_bool(Ret, (Value) == 0); \
|
||||
if (SpinLock) \
|
||||
ok_eq_ulongptr(*(SpinLock), \
|
||||
(Value) ? (ULONG_PTR)Thread | 1 : 0); \
|
||||
{ \
|
||||
if (KmtIsCheckedBuild) \
|
||||
ok_eq_ulongptr(*(SpinLock), (Value) ? (ULONG_PTR)Thread | 1 : 0); \
|
||||
else \
|
||||
ok_eq_ulongptr(*(SpinLock), (Value) ? 1 : 0); \
|
||||
} \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
|
@ -192,7 +196,7 @@ BOOLEAN TryNoRaise(PKSPIN_LOCK SpinLock, PCHECK_DATA CheckData) {
|
|||
|
||||
#define CheckSpinLockQueueHandle(SpinLock, CheckData, Value) do \
|
||||
{ \
|
||||
if (KmtIsMultiProcessorBuild) \
|
||||
if (KmtIsMultiProcessorBuild || KmtIsCheckedBuild) \
|
||||
{ \
|
||||
ok_eq_bool(Ret, (Value) == 0); \
|
||||
if (SpinLock) \
|
||||
|
|
Loading…
Reference in a new issue