torture/spoolss: issue GetJob after StartDocPrinter getjob_after_startpageprinter
authorDavid Disseldorp <ddiss@samba.org>
Wed, 3 Dec 2014 17:44:37 +0000 (18:44 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Thu, 4 Dec 2014 10:52:51 +0000 (11:52 +0100)
This reflects Windows XP spoolss client behaviour, and currently causes
the DCE/RPC pipe to enter fault state.

Signed-off-by: David Disseldorp <ddiss@samba.org>
source4/torture/rpc/spoolss.c

index 20e86fc16a733523fdf5ca490a6bba8e8fc93957..701f31d428d3d08cb0ddf90b2f2cacc5b1e22c9e 100644 (file)
@@ -3446,6 +3446,8 @@ static bool test_DoPrintTest_add_one_job_common(struct torture_context *tctx,
        torture_assert_werr_ok(tctx, s.out.result, "StartDocPrinter failed");
 
        for (i=1; i < 4; i++) {
+               union spoolss_JobInfo ginfo;
+
                torture_comment(tctx, "Testing StartPagePrinter: Page[%d], JobId[%d]\n", i, *job_id);
 
                sp.in.handle            = handle;
@@ -3455,6 +3457,10 @@ static bool test_DoPrintTest_add_one_job_common(struct torture_context *tctx,
                                           "dcerpc_spoolss_StartPagePrinter failed");
                torture_assert_werr_ok(tctx, sp.out.result, "StartPagePrinter failed");
 
+               torture_assert(tctx,
+                              test_GetJob_args(tctx, b, handle, *job_id, 1, &ginfo),
+                              "failed to call test_GetJob");
+
                torture_comment(tctx, "Testing WritePrinter: Page[%d], JobId[%d]\n", i, *job_id);
 
                w.in.handle             = handle;