summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2014-08-07 14:44:23 -0700
committerJeremy Allison <jra@samba.org>2014-08-30 00:27:13 +0200
commitf796694aaa08ca8bd3c08ec43541a88a1eb75517 (patch)
tree01c2e50c0bb1e923c300b5cfb1c1cbdbbda90533 /source4/torture/raw
parentd29362e85ebdf4450659641f889eebf5937f9345 (diff)
downloadsamba-f796694aaa08ca8bd3c08ec43541a88a1eb75517.tar.gz
torture: Use torture_assert macro for value check in raw.read
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source4/torture/raw')
-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 365b3853e02..6abf08b9678 100644
--- a/source4/torture/raw/read.c
+++ b/source4/torture/raw/read.c
@@ -31,12 +31,9 @@
} while (0)
#define CHECK_VALUE(v, correct) do { \
- if ((v) != (correct)) { \
- printf("(%s) Incorrect value %s=%ld - should be %ld\n", \
- __location__, #v, (long)v, (long)correct); \
- ret = false; \
- goto done; \
- }} while (0)
+ torture_assert_int_equal_goto(tctx, (v), (correct), ret, done, \
+ "Incorrect value"); \
+ } while (0)
#define CHECK_BUFFER(buf, seed, len) do { \
if (!check_buffer(tctx, buf, seed, len, __LINE__)) { \