From 98ff29291b26abe35efc6cc2552b9e49c4330983 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 28 May 2009 14:49:29 +1000 Subject: [PATCH] s4:torture Half the repeditive tests run by RPC-SAMR-PASSWORDS-PWDLASTSET --- source4/torture/rpc/samr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index d13c547a2b7..1f7bb67ecae 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -2867,7 +2867,7 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, int delay = 50000; bool set_levels[] = { false, true }; bool query_levels[] = { false, true }; - uint32_t levels[] = { 18, 21, 23, 24, 25, 26 }; + uint32_t levels[] = { 18, 21, 26, 23, 24, 25 }; /* Second half only used when TEST_ALL_LEVELS defined */ uint32_t nonzeros[] = { 1, 24 }; uint32_t fields_present[] = { 0, @@ -2918,10 +2918,15 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, (SetUserInfo, SetUserInfo2, QueryUserInfo, QueryUserInfo2) combinations */ #if 0 +#define TEST_ALL_LEVELS 1 #define TEST_SET_LEVELS 1 #define TEST_QUERY_LEVELS 1 #endif +#ifdef TEST_ALL_LEVELS for (l=0; l