[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Fri Feb 19 06:24:45 MST 2010


The branch, master has been updated
       via  299e5bc... s4-smbtorture: print more comments while running SD and DM tests in RPC-SPOOLSS-PRINTER.
      from  e40310a... testprogs: ignore GetJob level 3 and 4 against samba for now.

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


- Log -----------------------------------------------------------------
commit 299e5bc2ba767a4f23553c247a32d17395c53786
Author: Günther Deschner <gd at samba.org>
Date:   Fri Feb 19 14:14:18 2010 +0100

    s4-smbtorture: print more comments while running SD and DM tests in RPC-SPOOLSS-PRINTER.
    
    Guenther

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

Summary of changes:
 source4/torture/rpc/spoolss.c |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 08cb4f2..6cc6727 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -1732,16 +1732,15 @@ static bool test_PrinterInfo_SD(struct torture_context *tctx,
 				struct policy_handle *handle)
 {
 	union spoolss_PrinterInfo info;
-	struct spoolss_SetPrinterInfo3 info3;
-	struct spoolss_SetPrinterInfoCtr info_ctr;
-	struct spoolss_DevmodeContainer devmode_ctr;
-	struct sec_desc_buf secdesc_ctr;
 	struct security_descriptor *sd;
 	bool ret = true;
 
+	torture_comment(tctx, "\nTesting Printer Security Descriptors\n");
+
 	/* save original sd */
 
-	torture_assert(tctx, test_GetPrinter_level(tctx, p, handle, 2, &info), "");
+	torture_assert(tctx, test_GetPrinter_level(tctx, p, handle, 2, &info),
+		"failed to get initial security descriptor");
 
 	sd = security_descriptor_copy(tctx, info.info2.secdesc);
 
@@ -1751,18 +1750,12 @@ static bool test_PrinterInfo_SD(struct torture_context *tctx,
 
 	/* restore original sd */
 
-	ZERO_STRUCT(devmode_ctr);
-	ZERO_STRUCT(secdesc_ctr);
-
-	info3.sec_desc_ptr = 0;
-
-	info_ctr.level = 3;
-	info_ctr.info.info3 = &info3;
+	torture_assert(tctx, test_sd_set_level(tctx, p, handle, 3, sd),
+		"failed to restore initial security descriptor");
 
-	secdesc_ctr.sd = sd;
+	torture_comment(tctx, "Printer Security Descriptors test %s\n",
+		ret ? "succeeded" : "failed");
 
-	torture_assert(tctx,
-		test_SetPrinter(tctx, p, handle, &info_ctr, &devmode_ctr, &secdesc_ctr, 0), "");
 
 	return ret;
 }
@@ -2010,6 +2003,8 @@ static bool test_PrinterInfo_DevMode(struct torture_context *tctx,
 	struct spoolss_DeviceMode *devmode;
 	bool ret = true;
 
+	torture_comment(tctx, "\nTesting Printer Devicemodes\n");
+
 	/* save original devmode */
 
 	torture_assert(tctx, test_GetPrinter_level(tctx, p, handle, 8, &info),
@@ -2026,6 +2021,10 @@ static bool test_PrinterInfo_DevMode(struct torture_context *tctx,
 	torture_assert(tctx, test_devmode_set_level(tctx, p, handle, 8, devmode),
 		"failed to restore initial global device mode");
 
+	torture_comment(tctx, "Printer Devicemodes test %s\n",
+		ret ? "succeeded" : "failed");
+
+
 	return ret;
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list