From 18daf6ec4de11ce7534dbec46bffcd2d6f8ebdbd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 31 Jul 2005 23:55:10 +0000 Subject: r8873: add more checks metze (This used to be commit bfc855d78f4ffb6e0f30a2bb02d8b388abaa971b) --- source4/torture/local/irpc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture') 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); } -- cgit