summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/local/irpc.c5
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);
}