summaryrefslogtreecommitdiff
path: root/source/torture/nbt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-31 15:43:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:18 -0500
commitf914b828ff486d41e123e6dafa1c8fd76b34b44b (patch)
tree978efdee72578f082a376f3cb215e31d7ad55056 /source/torture/nbt
parentc2521453a902ea5fd4f894a21af711ac2b2cbd40 (diff)
downloadsamba-f914b828ff486d41e123e6dafa1c8fd76b34b44b.tar.gz
r24846: Use metadata about dangerous tests.
Diffstat (limited to 'source/torture/nbt')
-rw-r--r--source/torture/nbt/winsreplication.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/torture/nbt/winsreplication.c b/source/torture/nbt/winsreplication.c
index bc370c8b4ea..78f6352ed6f 100644
--- a/source/torture/nbt/winsreplication.c
+++ b/source/torture/nbt/winsreplication.c
@@ -97,10 +97,6 @@ static bool test_assoc_ctx1(struct torture_context *tctx)
struct nbt_name name;
const char *address;
- if (!torture_setting_bool(tctx, "dangerous", false)) {
- torture_skip(tctx, "winsrepl: cross connection assoc_ctx usage disabled - enable dangerous tests to use");
- }
-
if (!torture_nbt_get_name(tctx, &name, &address))
return false;
@@ -9675,8 +9671,11 @@ struct torture_suite *torture_nbt_winsreplication(void)
struct torture_suite *suite = torture_suite_create(
talloc_autofree_context(),
"WINSREPLICATION");
- torture_suite_add_simple_test(suite, "assoc_ctx1",
- test_assoc_ctx1);
+ struct torture_tcase *tcase;
+
+ tcase = torture_suite_add_simple_test(suite, "assoc_ctx1",
+ test_assoc_ctx1);
+ tcase->tests->dangerous = true;
torture_suite_add_simple_test(suite, "assoc_ctx2",
test_assoc_ctx2);