Author: metze
Date: 2004-12-13 12:28:47 +0000 (Mon, 13 Dec 2004)
New Revision: 4180

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4180

Log:
use the same syntax as the other torture tests

metze

Modified:
   branches/SAMBA_4_0/source/torture/rpc/drsuapi.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/drsuapi.c     2004-12-13 12:24:57 UTC 
(rev 4179)
+++ branches/SAMBA_4_0/source/torture/rpc/drsuapi.c     2004-12-13 12:28:47 UTC 
(rev 4180)
@@ -772,6 +772,11 @@
                }
        };
 
+       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 @@
 
        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);
 

Reply via email to