summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-07-01 22:52:49 +0200
committerGünther Deschner <gd@samba.org>2009-07-02 22:00:41 +0200
commitf729abaa94e4b77fe2028d8d5ee38f9eff462fd6 (patch)
tree35b851ca5d75c200d09b9a459774751953f84624 /source4/torture/rpc
parenta45ec4db736b0df002db0649768f851fa35fee9e (diff)
downloadsamba-f729abaa94e4b77fe2028d8d5ee38f9eff462fd6.tar.gz
samba-f729abaa94e4b77fe2028d8d5ee38f9eff462fd6.tar.bz2
samba-f729abaa94e4b77fe2028d8d5ee38f9eff462fd6.zip
s4-smbtorture: fix getjob test in RPC-SPOOLSS.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 1c4b8ed0d0..10e18e1531 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -1131,6 +1131,7 @@ static bool test_GetJob(struct torture_context *tctx,
{
NTSTATUS status;
struct spoolss_GetJob r;
+ union spoolss_JobInfo info;
uint32_t needed;
uint32_t levels[] = {1, 2 /* 3, 4 */};
uint32_t i;
@@ -1141,6 +1142,7 @@ static bool test_GetJob(struct torture_context *tctx,
r.in.buffer = NULL;
r.in.offered = 0;
r.out.needed = &needed;
+ r.out.info = &info;
torture_comment(tctx, "Testing GetJob level %d\n", r.in.level);
@@ -1151,8 +1153,11 @@ static bool test_GetJob(struct torture_context *tctx,
torture_comment(tctx, "Testing GetJob level %d\n", r.in.level);
+ needed = 0;
+
r.in.level = levels[i];
r.in.offered = 0;
+ r.in.buffer = NULL;
status = dcerpc_spoolss_GetJob(p, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "GetJob failed");