summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/dfs.c26
-rw-r--r--source4/torture/rpc/echo.c5
2 files changed, 25 insertions, 6 deletions
diff --git a/source4/torture/rpc/dfs.c b/source4/torture/rpc/dfs.c
index 3f8d789fe8..f4bcc7a629 100644
--- a/source4/torture/rpc/dfs.c
+++ b/source4/torture/rpc/dfs.c
@@ -45,20 +45,34 @@ static BOOL test_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
struct dfs_Enum r;
- uint32 resume_handle = 0;
+ uint32 total=0;
+ struct dfs_EnumStruct e;
+ uint32 i = 0;
+ struct dfs_String s;
+ struct dfs_Enum1 e1;
+
+ e.level = 1;
+ e.e.enum1 = &e1;
+ e.e.enum1->count = 0;
+ e.e.enum1->s = &s;
+ s.str = NULL;
- r.in.name = "";
r.in.level = 1;
- r.in.buffer_size = 20000;
- r.in.resume_handle = &resume_handle;
- r.out.resume_handle = &resume_handle;
-
+ r.in.bufsize = (uint32)-1;
+ r.in.total = &total;
+ r.in.unknown = NULL;
+ r.in.info = &e;
+
status = dcerpc_dfs_Enum(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
printf("Enum failed - %s\n", nt_errstr(status));
return False;
}
+ NDR_PRINT_DEBUG(dfs_EnumStruct, r.out.info);
+
+ printf("total=%d\n", r.out.total?*r.out.total:-1);
+
return True;
}
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index c0416fdb8a..1e6328f3b4 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -197,6 +197,11 @@ BOOL torture_rpc_echo(int dummy)
return False;
}
+ if (!test_testcall(p, mem_ctx)) {
+ ret = False;
+ }
+ return ret;
+
if (!test_addone(p, mem_ctx)) {
ret = False;
}