From: Ralph Boehme Date: Sat, 2 Nov 2024 14:49:41 +0000 (+0200) Subject: smbtorture: use torture_assert_ntstatus_equal_goto() in CHECK_STATUS() in unlink.c X-Git-Tag: tdb-1.4.13~615 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6d3e1117ff28cbca29ea2b91167b2fda1d6bd64;p=thirdparty%2Fsamba.git smbtorture: use torture_assert_ntstatus_equal_goto() in CHECK_STATUS() in unlink.c fixup Signed-off-by: Ralph Boehme Reviewed-by: Anoop C S Autobuild-User(master): Anoop C S Autobuild-Date(master): Mon Nov 11 14:01:18 UTC 2024 on atb-devel-224 --- diff --git a/source4/torture/raw/unlink.c b/source4/torture/raw/unlink.c index 061ebe0e041..77cbb4acb61 100644 --- a/source4/torture/raw/unlink.c +++ b/source4/torture/raw/unlink.c @@ -26,13 +26,8 @@ #include "torture/util.h" #include "torture/raw/proto.h" -#define CHECK_STATUS(status, correct) do { \ - if (!NT_STATUS_EQUAL(status, correct)) { \ - printf("(%s) Incorrect status %s - should be %s\n", \ - __location__, 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, __location__) #define BASEDIR "\\testunlink"