svn commit: samba r8873 - in branches/SAMBA_4_0/source/torture/local: .

metze at samba.org metze at samba.org
Sun Jul 31 23:55:11 GMT 2005


Author: metze
Date: 2005-07-31 23:55:10 +0000 (Sun, 31 Jul 2005)
New Revision: 8873

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8873

Log:
add more checks

metze
Modified:
   branches/SAMBA_4_0/source/torture/local/irpc.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/irpc.c
===================================================================
--- branches/SAMBA_4_0/source/torture/local/irpc.c	2005-07-31 23:53:29 UTC (rev 8872)
+++ branches/SAMBA_4_0/source/torture/local/irpc.c	2005-07-31 23:55:10 UTC (rev 8873)
@@ -79,11 +79,16 @@
 
 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);
 }



More information about the samba-cvs mailing list