s4/torture: change comments to torture_failures
[ira/wip.git] / source4 / torture / basic / denytest.c
index bc64d4b2ffce7235430866ccb3ddb635612d796b..ae7c241a5ceb9b10f2b90a95f4f48c9c1ffe3f6b 100644 (file)
@@ -1914,7 +1914,8 @@ bool torture_ntdenytest2(struct torture_context *torture,
 
 #define CHECK_STATUS(status, correct) do { \
        if (!NT_STATUS_EQUAL(status, correct)) { \
-               torture_comment(tctx, "(%s) Incorrect status %s - should be %s\n", \
+               torture_result(tctx, TORTURE_FAIL, \
+                       "(%s) Incorrect status %s - should be %s\n", \
                       __location__, nt_errstr(status), nt_errstr(correct)); \
                ret = false; \
                goto done; \
@@ -1922,7 +1923,8 @@ bool torture_ntdenytest2(struct torture_context *torture,
 
 #define CHECK_VAL(v, correct) do { \
        if ((v) != (correct)) { \
-               torture_comment(tctx, "(%s) wrong value for %s  0x%x - should be 0x%x\n", \
+               torture_result(tctx, TORTURE_FAIL, \
+                     "(%s) wrong value for %s  0x%x - should be 0x%x\n", \
                       __location__, #v, (int)(v), (int)correct); \
                ret = false; \
        }} while (0)