From f796694aaa08ca8bd3c08ec43541a88a1eb75517 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 7 Aug 2014 14:44:23 -0700 Subject: torture: Use torture_assert macro for value 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(-) (limited to 'source4/torture/raw') 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__)) { \ -- cgit v1.2.1