summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-13 12:28:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:23 -0500
commit3483fb70e991e3cef47824e54575a4a7feb943ff (patch)
treed6b37f87f8683e87d564fa5774bd187c776c0754 /source4
parent15581d3e1ecbc0668a0c4552292b62afed2c0889 (diff)
downloadsamba-3483fb70e991e3cef47824e54575a4a7feb943ff.tar.gz
samba-3483fb70e991e3cef47824e54575a4a7feb943ff.tar.bz2
samba-3483fb70e991e3cef47824e54575a4a7feb943ff.zip
r4180: use the same syntax as the other torture tests
metze (This used to be commit 00395ffcc3cc94216619ca827ff6a09b0cc28de1)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/drsuapi.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c
index bce1bbf9ac..f44bf97568 100644
--- a/source4/torture/rpc/drsuapi.c
+++ b/source4/torture/rpc/drsuapi.c
@@ -772,6 +772,11 @@ static BOOL test_DsReplicaSync(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
}
};
+ if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+ printf("DsReplicaSync disabled - enable dangerous tests to use\n");
+ return True;
+ }
+
r.in.bind_handle = &priv->bind_handle;
for (i=0; i < ARRAY_SIZE(array); i++) {
@@ -870,11 +875,7 @@ BOOL torture_rpc_drsuapi(void)
ret &= test_DsReplicaGetInfo(p, mem_ctx, &priv);
- if (lp_parm_int(-1, "torture", "dangerous") == 1) {
- ret &= test_DsReplicaSync(p, mem_ctx, &priv);
- } else {
- printf("DsReplicaSync disabled - enable dangerous tests to use\n");
- }
+ ret &= test_DsReplicaSync(p, mem_ctx, &priv);
ret &= test_DsUnbind(p, mem_ctx, &priv);