[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Thu Jun 3 06:56:09 MDT 2010


The branch, master has been updated
       via  8131e9f... s4-smbtorture: move PrintProcessors winreg test to main RPC-SPOOLSS test.
      from  6acaa70... s4-smbtorture: add test_PrintProcessors_winreg.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 8131e9f29059c6ad7428405f9a995ee1bef2e72b
Author: Günther Deschner <gd at samba.org>
Date:   Thu Jun 3 14:54:02 2010 +0200

    s4-smbtorture: move PrintProcessors winreg test to main RPC-SPOOLSS test.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/rpc/spoolss.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index b785ebd..b13bdc6 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -4365,7 +4365,6 @@ do {\
 
 static bool test_PrintProcessors(struct torture_context *tctx,
 				 struct dcerpc_binding_handle *b,
-				 struct policy_handle *handle,
 				 const char *environment,
 				 struct dcerpc_binding_handle *winreg_handle,
 				 struct policy_handle *hive_handle)
@@ -5054,7 +5053,6 @@ static bool test_DriverInfo_winreg(struct torture_context *tctx,
 
 static bool test_PrintProcessors_winreg(struct torture_context *tctx,
 					struct dcerpc_binding_handle *b,
-					struct policy_handle *handle,
 					const char *environment)
 {
 	struct dcerpc_pipe *p2;
@@ -5069,7 +5067,7 @@ static bool test_PrintProcessors_winreg(struct torture_context *tctx,
 
 	torture_assert(tctx, test_winreg_OpenHKLM(tctx, b2, &hive_handle), "");
 
-	ret = test_PrintProcessors(tctx, b, handle, environment, b2, &hive_handle);
+	ret = test_PrintProcessors(tctx, b, environment, b2, &hive_handle);
 
 	test_winreg_CloseKey(tctx, b2, &hive_handle);
 
@@ -6510,10 +6508,6 @@ static bool test_one_printer(struct torture_context *tctx,
 		ret = false;
 	}
 
-	if (!test_PrintProcessors_winreg(tctx, b, handle, environment)) {
-		ret = false;
-	}
-
 	if (!test_PrinterData_DsSpooler(tctx, p, handle, name)) {
 		ret = false;
 	}
@@ -6954,6 +6948,7 @@ bool torture_rpc_spoolss(struct torture_context *torture)
 	ret &= test_EnumPrinters_old(torture, p, environment);
 	ret &= test_EnumPrinterDrivers_old(torture, p, environment);
 	ret &= test_architecture_buffer(torture, p);
+	ret &= test_PrintProcessors_winreg(torture, b, environment);
 
 	return ret;
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list