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

commit 2289deb8497c6022fbb2044a818fbdb826ed5a1b
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Fri Jul 23 17:38:22 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Fri Jul 23 17:40:57 2021 +0200

    [KMTESTS:NTOS_IO] Fix check of spinlocks in case of checked builds
    
    Down back to zero failures
---
 modules/rostests/kmtests/ntos_io/IoInterrupt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/rostests/kmtests/ntos_io/IoInterrupt.c 
b/modules/rostests/kmtests/ntos_io/IoInterrupt.c
index 4184e16dfdf..6003384789e 100644
--- a/modules/rostests/kmtests/ntos_io/IoInterrupt.c
+++ b/modules/rostests/kmtests/ntos_io/IoInterrupt.c
@@ -14,6 +14,8 @@
 {                                                       \
     if (KmtIsMultiProcessorBuild)                       \
         ok_eq_ulongptr(*(Lock), (Locked) != 0);         \
+    else if (KmtIsCheckedBuild)                         \
+        ok_eq_bool(*(Lock) != 0, (Locked) != 0);        \
     else                                                \
         ok_eq_ulongptr(*(Lock), 0);                     \
 } while (0)

Reply via email to