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

commit e8271c9a462fa1828828150c5dd10d1b09559b9a
Author:     Serge Gautherie <reactos-git_serge_171...@gautherie.fr>
AuthorDate: Thu Feb 22 16:03:42 2018 +0100
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Thu Feb 22 22:26:34 2018 +0100

    [KMTESTS:FSRTL] Fix all FsRtlLargeMcbTestsFastFat() checks
    
    Addendum to 22037684e42e29abc99a9a280278b16305eaa2e2.
    
    - Result: check "== FALSE" not "= TRUE".
    - Report compared values, not different ones.
    
    CORE-11819
---
 modules/rostests/kmtests/ntos_fsrtl/FsRtlMcb.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/rostests/kmtests/ntos_fsrtl/FsRtlMcb.c 
b/modules/rostests/kmtests/ntos_fsrtl/FsRtlMcb.c
index 8f833d6208..2bdb95bd2e 100644
--- a/modules/rostests/kmtests/ntos_fsrtl/FsRtlMcb.c
+++ b/modules/rostests/kmtests/ntos_fsrtl/FsRtlMcb.c
@@ -699,18 +699,18 @@ static VOID FsRtlLargeMcbTestsFastFat()
     Lbn = -1;
     SectorCount = -1;
     Result = FsRtlLookupLargeMcbEntry(&FirstMcb, 8388607LL, &Lbn, 
&SectorCount, NULL, NULL, NULL);
-    ok(Result = TRUE, "Expected TRUE, got FALSE\n");
-    ok(Lbn == -1, "Expected Lbn 44, got: %I64d\n", Lbn);
-    ok(SectorCount == -1, "Expected SectorCount 44, got: %I64d\n", 
SectorCount);
+    ok_bool_false(Result, "FsRtlLookupLargeMcbEntry returned");
+    ok_eq_longlong(Lbn, -1);
+    ok_eq_longlong(SectorCount, -1);
 
     Vbn = -1;
     Lbn = -1;
-    Index = -1;
+    Index = (ULONG) -1;
     Result = FsRtlLookupLastLargeMcbEntryAndIndex(&FirstMcb, &Vbn, &Lbn, 
&Index);
-    ok(Result = TRUE, "Expected TRUE, got FALSE\n");
-    ok(Vbn == -1, "Expected Vbn 0, got: %I64d\n", Vbn);
-    ok(Lbn == -1, "Expected Lbn 0, got: %I64d\n", Lbn);
-    ok(Index == -1, "Expected Index 0, got: %d\n", Index);
+    ok_bool_false(Result, "FsRtlLookupLastLargeMcbEntryAndIndex returned");
+    ok_eq_longlong(Vbn, -1);
+    ok_eq_longlong(Lbn, -1);
+    ok_eq_ulong(Index, (ULONG) -1);
 
     FsRtlUninitializeLargeMcb(&FirstMcb);
 }

Reply via email to