]> git.samba.org - obnox/samba/samba-obnox.git/commitdiff
s4-torture: use torture_assert_ntstatus_equal_goto in replay test
authorGünther Deschner <gd@samba.org>
Tue, 19 Sep 2017 01:24:24 +0000 (03:24 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 18 Sep 2018 10:34:31 +0000 (12:34 +0200)
source4/torture/smb2/replay.c

index 3d33834f78224c728b15c33640e1aba3f61faaff..289fb0144d87838d4547c29e6ad6bc35ed184014 100644 (file)
                goto done; \
        }} while (0)
 
-#define CHECK_STATUS(status, correct) do { \
-       if (!NT_STATUS_EQUAL(status, correct)) { \
-               torture_result(tctx, TORTURE_FAIL, __location__": Incorrect status %s - should be %s", \
-                      nt_errstr(status), nt_errstr(correct)); \
-               ret = false; \
-               goto done; \
-       }} while (0)
+#define CHECK_STATUS(status, correct) \
+       torture_assert_ntstatus_equal_goto(tctx, status, correct, ret, done, "");
 
 #define CHECK_CREATED(__io, __created, __attribute)                    \
        do {                                                            \