summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-05-03 11:24:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:34 -0500
commit5adcc59265dad33d912563e1538345fa26c8c07b (patch)
tree09653cef48cc142001c1d3f25f15a4572cd06486
parent0bcfa67f0e36e65f5d14a5d1f8592a7ad943761f (diff)
downloadsamba-5adcc59265dad33d912563e1538345fa26c8c07b.tar.gz
samba-5adcc59265dad33d912563e1538345fa26c8c07b.tar.bz2
samba-5adcc59265dad33d912563e1538345fa26c8c07b.zip
r15412: Put the test in a dangerous category.
rafal (This used to be commit 52b4ef14a02ca1c72cef2467b214518bbe32c8f6)
-rw-r--r--source4/torture/rpc/async_bind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/rpc/async_bind.c b/source4/torture/rpc/async_bind.c
index 14a2146e5e..960f099c9b 100644
--- a/source4/torture/rpc/async_bind.c
+++ b/source4/torture/rpc/async_bind.c
@@ -49,6 +49,11 @@ BOOL torture_async_bind(struct torture_context *torture)
struct dcerpc_pipe *pipe[ASYNC_COUNT];
struct dcerpc_interface_table *table[ASYNC_COUNT];
+ if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
+ printf("async bind test disabled - enable dangerous tests to use\n");
+ return True;
+ }
+
binding_string = lp_parm_string(-1, "torture", "binding");
/* talloc context */