From: Günther Deschner Date: Fri, 28 Nov 2008 11:10:56 +0000 (+0100) Subject: s4-smbtorture: allow to disable full testing of all possible opcode combinations. X-Git-Tag: samba-4.0.0alpha6~480^2~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b687944f382185fafccc41f3ec4737a72e55448;p=thirdparty%2Fsamba.git s4-smbtorture: allow to disable full testing of all possible opcode combinations. Guenther --- diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 98e6a5a4455..86a959df7c6 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -2406,7 +2406,7 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, struct policy_handle *handle, char **password) { - int i, s, q; + int i, s = 0, q = 0; bool ret = true; int delay = 500000; bool set_levels[] = { false, true }; @@ -2530,10 +2530,20 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, return ret; } + /* set to 1 to enable testing for all possible opcode + (SetUserInfo, SetUserInfo2, QueryUserInfo, QueryUserInfo2) + combinations */ +#if 0 +#define TEST_SET_LEVELS 1 +#define TEST_QUERY_LEVELS 1 +#endif for (i=0; i