diff options
author | Christof Schmitt <cs@samba.org> | 2014-08-07 14:44:23 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-08-30 00:27:13 +0200 |
commit | f796694aaa08ca8bd3c08ec43541a88a1eb75517 (patch) | |
tree | 01c2e50c0bb1e923c300b5cfb1c1cbdbbda90533 /source4/torture/raw | |
parent | d29362e85ebdf4450659641f889eebf5937f9345 (diff) | |
download | samba-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.c | 9 |
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__)) { \ |