summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-15 20:07:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:47 -0500
commitd9b4bdd5bb32806162514f7e010a97d24fb94549 (patch)
treed72ab8f87bf4235dcb60450980e4db839fab9a62 /source4/torture
parentdb0fdcf6ce8b3d02a5f720652f22a2b7167c5e26 (diff)
downloadsamba-d9b4bdd5bb32806162514f7e010a97d24fb94549.tar.gz
samba-d9b4bdd5bb32806162514f7e010a97d24fb94549.tar.bz2
samba-d9b4bdd5bb32806162514f7e010a97d24fb94549.zip
r18565: Fix echo.idl to be Samba3-, MIDL and midlc compatible
(This used to be commit ab0a798c57564901f0adcd8aedc1ef0928e79edd)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/echo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index 5752b90ccf..02f255e5f8 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -209,8 +209,10 @@ static BOOL test_testcall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
struct echo_TestCall r;
+ char *s = NULL;
r.in.s1 = "input string";
+ r.out.s2 = &s;
printf("\nTesting TestCall\n");
status = dcerpc_echo_TestCall(p, mem_ctx, &r);
@@ -219,6 +221,11 @@ static BOOL test_testcall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
return False;
}
+ if (!strcmp(s, "input string")) {
+ printf("Didn't receive back same string\n");
+ return False;
+ }
+
return True;
}