summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/rpc/drsuapi.c30
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);