diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-12-13 12:24:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:23 -0500 |
commit | 15581d3e1ecbc0668a0c4552292b62afed2c0889 (patch) | |
tree | f61bf7e169908bf9ee89477cae1b90e3dca23745 | |
parent | 7d24d23e5595aa150e588229e4ab18d52d1a69de (diff) | |
download | samba-15581d3e1ecbc0668a0c4552292b62afed2c0889.tar.gz samba-15581d3e1ecbc0668a0c4552292b62afed2c0889.tar.bz2 samba-15581d3e1ecbc0668a0c4552292b62afed2c0889.zip |
r4179: - nicer code layout
- and disable DsReplicaSync by default it kill lsass.exe
on my w2k box
metze
(This used to be commit 8373b2d4c7decd49a361637e03b24b311aed302c)
-rw-r--r-- | source4/torture/rpc/drsuapi.c | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c index 7bef1e5360..bce1bbf9ac 100644 --- a/source4/torture/rpc/drsuapi.c +++ b/source4/torture/rpc/drsuapi.c @@ -860,33 +860,23 @@ BOOL torture_rpc_drsuapi(void) ZERO_STRUCT(priv); - if (!test_DsBind(p, mem_ctx, &priv)) { - ret = False; - } + ret &= test_DsBind(p, mem_ctx, &priv); - if (!test_DsGetDCInfo(p, mem_ctx, &priv)) { - ret = False; - } + ret &= test_DsGetDCInfo(p, mem_ctx, &priv); - if (!test_DsCrackNames(p, mem_ctx, &priv)) { - ret = False; - } + ret &= test_DsCrackNames(p, mem_ctx, &priv); - if (!test_DsWriteAccountSpn(p, mem_ctx, &priv)) { - ret = False; - } + ret &= test_DsWriteAccountSpn(p, mem_ctx, &priv); - if (!test_DsReplicaGetInfo(p, mem_ctx, &priv)) { - ret = False; - } + ret &= test_DsReplicaGetInfo(p, mem_ctx, &priv); - if (!test_DsReplicaSync(p, mem_ctx, &priv)) { - ret = False; + 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"); } - if (!test_DsUnbind(p, mem_ctx, &priv)) { - ret = False; - } + ret &= test_DsUnbind(p, mem_ctx, &priv); talloc_destroy(mem_ctx); |