summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-05-28 14:49:29 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-05-29 11:56:27 +1000
commit98ff29291b26abe35efc6cc2552b9e49c4330983 (patch)
tree090ea64f246c3535e1710d2c142323bf2cef1da8 /source4/torture
parent10f076a77de87c036a083533cb34d65eb5f7044a (diff)
downloadsamba-98ff29291b26abe35efc6cc2552b9e49c4330983.tar.gz
samba-98ff29291b26abe35efc6cc2552b9e49c4330983.tar.bz2
samba-98ff29291b26abe35efc6cc2552b9e49c4330983.zip
s4:torture Half the repeditive tests run by RPC-SAMR-PASSWORDS-PWDLASTSET
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/samr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index d13c547a2b..1f7bb67eca 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<ARRAY_SIZE(levels); l++) {
+#else
+ for (l=0; l<(ARRAY_SIZE(levels))/2; l++) {
+#endif
for (z=0; z<ARRAY_SIZE(nonzeros); z++) {
for (f=0; f<ARRAY_SIZE(fields_present); f++) {
#ifdef TEST_SET_LEVELS