RAW-OPLOCK: use torture_result(TORTURE_FAIL) so that the knownfailures file work
authorStefan Metzmacher <metze@samba.org>
Wed, 27 Feb 2008 15:22:04 +0000 (16:22 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Feb 2008 15:33:32 +0000 (16:33 +0100)
metze

source/torture/raw/oplock.c

index 8e3416a11916e34a305f8b12511eca6316006261..0ca14a10f87ce2d120460969304e991b0a90a6b4 100644 (file)
 
 #define CHECK_VAL(v, correct) do { \
        if ((v) != (correct)) { \
-               torture_comment(tctx, "(%s): wrong value for %s got 0x%x - should be 0x%x\n", \
+               torture_result(tctx, TORTURE_FAIL, "(%s): wrong value for %s got 0x%x - should be 0x%x\n", \
                                __location__, #v, (int)v, (int)correct); \
                ret = false; \
        }} while (0)
 
 #define CHECK_STRMATCH(v, correct) do { \
        if (!v || strstr((v),(correct)) == NULL) { \
-               torture_comment(tctx, "(%s): wrong value for %s got '%s' - should be '%s'\n", \
+               torture_result(tctx, TORTURE_FAIL,  "(%s): wrong value for %s got '%s' - should be '%s'\n", \
                                __location__, #v, v?v:"NULL", correct); \
                ret = false; \
        } \