diff options
author | Günther Deschner <gd@samba.org> | 2015-06-26 00:14:07 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2015-07-03 02:00:27 +0200 |
commit | 34e4dac57bd59bf75131ac1253292c6957b34541 (patch) | |
tree | 476a85971a85c511627e04582e2378519db29705 /source4/torture/ndr | |
parent | 185896d988a6c720f10e4ae92103c645ea97a012 (diff) | |
download | samba-34e4dac57bd59bf75131ac1253292c6957b34541.tar.gz |
s4-torture: finally enable witness_AsyncNotify ndr test.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture/ndr')
-rw-r--r-- | source4/torture/ndr/witness.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source4/torture/ndr/witness.c b/source4/torture/ndr/witness.c index fa96e011ba0..e3a2efd7c48 100644 --- a/source4/torture/ndr/witness.c +++ b/source4/torture/ndr/witness.c @@ -249,6 +249,7 @@ static bool witness_AsyncNotify_check_OUT(struct torture_context *tctx, struct witness_AsyncNotify *r) { struct witness_notifyResponse *n; + struct witness_ResourceChange *c; torture_assert(tctx, r->out.response, "r->out.response"); @@ -257,12 +258,13 @@ static bool witness_AsyncNotify_check_OUT(struct torture_context *tctx, torture_assert_int_equal(tctx, n->type, WITNESS_NOTIFY_RESOURCE_CHANGE, "type"); torture_assert_int_equal(tctx, n->length, 18, "length"); torture_assert_int_equal(tctx, n->num, 1, "num"); -#if 0 - messages : * - messages : DATA_BLOB length=18 -[0000] 12 00 00 00 FF 00 00 00 53 00 4F 00 46 00 53 00 ........ S.O.F.S. -[0010] 00 00 -#endif + + c = &n->messages[0].resource_change; + + torture_assert_int_equal(tctx, c->length, 18, "c->length"); + torture_assert_int_equal(tctx, c->type, WITNESS_RESOURCE_STATE_UNAVAILABLE, "c->type"); + torture_assert_str_equal(tctx, c->name, "SOFS", "c->name"); + return true; } |