svn commit: samba r4422 - in branches/SAMBA_4_0/source/torture: . raw rpc

metze at samba.org metze at samba.org
Fri Dec 31 01:02:23 GMT 2004


Author: metze
Date: 2004-12-31 01:02:22 +0000 (Fri, 31 Dec 2004)
New Revision: 4422

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4422

Log:
make lp_set_cmdline("torture:dangerous", "Yes") a bool parameter

metze

Modified:
   branches/SAMBA_4_0/source/torture/raw/setfileinfo.c
   branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
   branches/SAMBA_4_0/source/torture/rpc/samr.c
   branches/SAMBA_4_0/source/torture/rpc/winreg.c
   branches/SAMBA_4_0/source/torture/torture.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/setfileinfo.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/setfileinfo.c	2004-12-31 00:07:37 UTC (rev 4421)
+++ branches/SAMBA_4_0/source/torture/raw/setfileinfo.c	2004-12-31 01:02:22 UTC (rev 4422)
@@ -527,7 +527,7 @@
 	NTSTATUS status;
 	int fnum;
 
-	if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+	if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
 		printf("torture_raw_sfileinfo_bug disabled - enable dangerous tests to use\n");
 		return True;
 	}

Modified: branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/drsuapi.c	2004-12-31 00:07:37 UTC (rev 4421)
+++ branches/SAMBA_4_0/source/torture/rpc/drsuapi.c	2004-12-31 01:02:22 UTC (rev 4422)
@@ -772,7 +772,7 @@
 		}
 	};
 
-	if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+	if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
 		printf("DsReplicaSync disabled - enable dangerous tests to use\n");
 		return True;
 	}
@@ -791,7 +791,7 @@
 			r.in.req.req1.info->unknown2		= 120;
 			ZERO_STRUCT(r.in.req.req1.info->guid1);
 			ZERO_ARRAY(r.in.req.req1.info->unknown3);
-			r.in.req.req1.info->nc_dn		= priv->domain_obj_dn;
+			r.in.req.req1.info->nc_dn		= priv->domain_obj_dn?priv->domain_obj_dn:"";
 			r.in.req.req1.guid1			= priv->dcinfo.ntds_guid;
 			r.in.req.req1.string1			= NULL;
 			r.in.req.req1.unknown1			= 16;

Modified: branches/SAMBA_4_0/source/torture/rpc/samr.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/samr.c	2004-12-31 00:07:37 UTC (rev 4421)
+++ branches/SAMBA_4_0/source/torture/rpc/samr.c	2004-12-31 01:02:22 UTC (rev 4422)
@@ -70,7 +70,7 @@
 	NTSTATUS status;
 	struct samr_Shutdown r;
 
-	if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+	if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
 		printf("samr_Shutdown disabled - enable dangerous tests to use\n");
 		return True;
 	}
@@ -96,7 +96,7 @@
 	struct samr_String string;
 	struct samr_Password hash;
 
-	if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+	if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
 		printf("samr_SetDsrmPassword disabled - enable dangerous tests to use\n");
 		return True;
 	}
@@ -2176,7 +2176,7 @@
 #define ASYNC_COUNT 100
 	struct rpc_request *req[ASYNC_COUNT];
 
-	if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+	if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
 		printf("samr async test disabled - enable dangerous tests to use\n");
 		return True;
 	}

Modified: branches/SAMBA_4_0/source/torture/rpc/winreg.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/winreg.c	2004-12-31 00:07:37 UTC (rev 4421)
+++ branches/SAMBA_4_0/source/torture/rpc/winreg.c	2004-12-31 01:02:22 UTC (rev 4422)
@@ -770,7 +770,7 @@
 		return False;
 	}
 
-    if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+	if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
 		printf("winreg_InitiateShutdown disabled - enable dangerous tests to use\n");
 	} else {
 		ret &= test_InitiateSystemShutdown(p, mem_ctx, "spottyfood", 30);

Modified: branches/SAMBA_4_0/source/torture/torture.c
===================================================================
--- branches/SAMBA_4_0/source/torture/torture.c	2004-12-31 00:07:37 UTC (rev 4421)
+++ branches/SAMBA_4_0/source/torture/torture.c	2004-12-31 01:02:22 UTC (rev 4422)
@@ -2697,7 +2697,7 @@
 			parse_dns(poptGetOptArg(pc));
 			break;
 		case OPT_DANGEROUS:
-			lp_set_cmdline("torture:dangerous", "1");
+			lp_set_cmdline("torture:dangerous", "Yes");
 			break;
 		default:
 			d_printf("Invalid option %s: %s\n", 



More information about the samba-cvs mailing list