diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/echo.c | 7 |
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; } |