diff options
author | Günther Deschner <gd@samba.org> | 2015-06-26 00:48:03 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2015-07-03 02:00:27 +0200 |
commit | 6aeb0a08abed38f311970d403b366636d01d8a8f (patch) | |
tree | c841cb0ee110bb0029f327d7cb9f0b6317614c24 /lib/torture | |
parent | 34e4dac57bd59bf75131ac1253292c6957b34541 (diff) | |
download | samba-6aeb0a08abed38f311970d403b366636d01d8a8f.tar.gz |
s4-torture: move torture_assert_sid_equal() out of ndr headers.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/torture')
-rw-r--r-- | lib/torture/torture.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/torture/torture.h b/lib/torture/torture.h index b90af843858..2d1ecccb936 100644 --- a/lib/torture/torture.h +++ b/lib/torture/torture.h @@ -500,6 +500,16 @@ void torture_result(struct torture_context *test, }\ } while(0) +#define torture_assert_sid_equal(torture_ctx,got,expected,cmt)\ + do { struct dom_sid *__got = (got), *__expected = (expected); \ + if (!dom_sid_equal(__got, __expected)) { \ + torture_result(torture_ctx, TORTURE_FAIL, \ + __location__": "#got" was %s, expected %s: %s", \ + dom_sid_string(torture_ctx, __got), dom_sid_string(torture_ctx, __expected), cmt); \ + return false; \ + } \ + } while(0) + #define torture_assert_not_null(torture_ctx,got,cmt)\ do { void *__got = (got); \ if (__got == NULL) { \ |