From d29362e85ebdf4450659641f889eebf5937f9345 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 7 Aug 2014 14:40:00 -0700 Subject: torture: Use torture_assert macro for status check in raw.read Signed-off-by: Christof Schmitt Reviewed-by: Volker Lendecke --- source4/torture/raw/read.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c index 8551c0b347..365b3853e0 100644 --- a/source4/torture/raw/read.c +++ b/source4/torture/raw/read.c @@ -26,12 +26,9 @@ #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) + torture_assert_ntstatus_equal_goto(tctx, status, correct, ret, \ + done, "incorrect status"); \ + } while (0) #define CHECK_VALUE(v, correct) do { \ if ((v) != (correct)) { \ -- cgit