git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
465466e
)
s4-smbtorture: allow to disable full testing of all possible opcode combinations.
author
Günther Deschner
<gd@samba.org>
Fri, 28 Nov 2008 11:10:56 +0000
(12:10 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 28 Nov 2008 13:09:26 +0000
(14:09 +0100)
Guenther
source4/torture/rpc/samr.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/samr.c
b/source4/torture/rpc/samr.c
index 98e6a5a4455442349227f3416c7f17d201178cf9..86a959df7c6814b40eaad5c9a338ac0bd3d508cf 100644
(file)
--- 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)
{
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 };
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;
}
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<ARRAY_SIZE(pwd_tests); i++) {
for (i=0; i<ARRAY_SIZE(pwd_tests); i++) {
+#ifdef TEST_SET_LEVELS
for (s=0; s<ARRAY_SIZE(set_levels); s++) {
for (s=0; s<ARRAY_SIZE(set_levels); s++) {
+#endif
+#ifdef TEST_QUERY_LEVELS
for (q=0; q<ARRAY_SIZE(query_levels); q++) {
for (q=0; q<ARRAY_SIZE(query_levels); q++) {
-
+#endif
NTTIME pwdlastset_old = 0;
NTTIME pwdlastset_new = 0;
NTTIME pwdlastset_old = 0;
NTTIME pwdlastset_new = 0;
@@
-2660,10
+2670,17
@@
static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p,
}
break;
}
}
break;
}
+#ifdef TEST_QUERY_LEVELS
}
}
+#endif
+#ifdef TEST_SET_LEVELS
}
}
+#endif
}
}
+#undef TEST_SET_LEVELS
+#undef TEST_QUERY_LEVELS
+
return ret;
}
return ret;
}