diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-07-31 23:55:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:13 -0500 |
commit | 18daf6ec4de11ce7534dbec46bffcd2d6f8ebdbd (patch) | |
tree | 179d095b11ca0d792665c81ce0c17ea690cd8272 /source4/torture/local | |
parent | e232ec639414eb5c4ce8a3bc41c54c2db0091ece (diff) | |
download | samba-18daf6ec4de11ce7534dbec46bffcd2d6f8ebdbd.tar.gz samba-18daf6ec4de11ce7534dbec46bffcd2d6f8ebdbd.tar.bz2 samba-18daf6ec4de11ce7534dbec46bffcd2d6f8ebdbd.zip |
r8873: add more checks
metze
(This used to be commit bfc855d78f4ffb6e0f30a2bb02d8b388abaa971b)
Diffstat (limited to 'source4/torture/local')
-rw-r--r-- | source4/torture/local/irpc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/local/irpc.c b/source4/torture/local/irpc.c index 6c342a9f2d..2558ccb5c9 100644 --- a/source4/torture/local/irpc.c +++ b/source4/torture/local/irpc.c @@ -79,11 +79,16 @@ static BOOL test_addone(TALLOC_CTX *mem_ctx, static void irpc_callback(struct irpc_request *irpc) { + struct echo_AddOne *r = irpc->r; int *pong_count = (int *)irpc->async.private; NTSTATUS status = irpc_call_recv(irpc); if (!NT_STATUS_IS_OK(status)) { printf("irpc call failed - %s\n", nt_errstr(status)); } + if (*r->out.out_data != r->in.in_data + 1) { + printf("AddOne wrong answer - %u + 1 = %u should be %u\n", + r->in.in_data, *r->out.out_data, r->in.in_data+1); + } (*pong_count)++; talloc_free(irpc); } |