summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2014-08-07 14:40:00 -0700
committerJeremy Allison <jra@samba.org>2014-08-30 00:27:13 +0200
commitd29362e85ebdf4450659641f889eebf5937f9345 (patch)
tree53ba5fcbf054f6b6f5c3db5267f4bf5620a04031 /source4
parentba8bc46c467c17f35ecea9064c91829c5be87136 (diff)
downloadsamba-d29362e85ebdf4450659641f889eebf5937f9345.tar.gz
torture: Use torture_assert macro for status check in raw.read
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/read.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c
index 8551c0b3473..365b3853e02 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)) { \