s4-smbtorture: add print test to RPC-SPOOLSS-PRINTER as well.
authorGünther Deschner <gd@samba.org>
Wed, 24 Mar 2010 23:49:38 +0000 (00:49 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 24 Mar 2010 23:50:44 +0000 (00:50 +0100)
Guenther

source4/torture/rpc/spoolss.c

index 99e5c9e3c02106582343ab64f658a42d0236cf54..b06c109af324aac53fd1a737319015e9a5e86915 100644 (file)
@@ -5151,6 +5151,18 @@ static bool test_one_printer(struct torture_context *tctx,
        bool ret = true;
        struct dcerpc_binding_handle *b = p->binding_handle;
 
+       if (!test_PausePrinter(tctx, b, handle)) {
+               ret = false;
+       }
+
+       if (!test_DoPrintTest(tctx, b, handle)) {
+               ret = false;
+       }
+
+       if (!test_ResumePrinter(tctx, b, handle)) {
+               ret = false;
+       }
+
        if (!test_printer_info(tctx, b, handle)) {
                ret = false;
        }