s4-smbtorture: hand down printername to test_SetPrinterDataEx_matrix.
authorGünther Deschner <gd@samba.org>
Fri, 5 Mar 2010 13:03:03 +0000 (14:03 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 5 Mar 2010 14:18:30 +0000 (15:18 +0100)
Guenther

source4/torture/rpc/spoolss.c

index 2e3e374ed762b140cda3e351229d3182f3912fc4..1bf77c93cb4fe18a9a17ea901e80dfae2bc089b9 100644 (file)
@@ -3261,7 +3261,8 @@ static bool test_SetPrinterDataEx(struct torture_context *tctx,
 
 static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx,
                                         struct dcerpc_pipe *p,
-                                        struct policy_handle *handle)
+                                        struct policy_handle *handle,
+                                        const char *printername)
 {
        const char *value_name = "dog";
        const char *keys[] = {
@@ -3796,7 +3797,7 @@ static bool test_OpenPrinterEx(struct torture_context *tctx,
                ret = false;
        }
 
-       if (!test_SetPrinterDataEx_matrix(tctx, p, &handle)) {
+       if (!test_SetPrinterDataEx_matrix(tctx, p, &handle, name)) {
                ret = false;
        }
 
@@ -4575,7 +4576,7 @@ static bool test_one_printer(struct torture_context *tctx,
                ret = false;
        }
 
-       if (!test_SetPrinterDataEx_matrix(tctx, p, handle)) {
+       if (!test_SetPrinterDataEx_matrix(tctx, p, handle, name)) {
                ret = false;
        }