From b394a4c2ff4502a0bf2bf05a6c7036f708fdb090 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 23 Apr 2004 05:40:18 +0000 Subject: r336: added a -X command line option to smbtorture to enable dangerous or possibly destructive tests. Use with care! Added IDL and test code for samr_Shutdown() and samr_SetDsrmPassword() (This used to be commit 84de0b7e58c69e0817b9d475de0895a54cc95927) --- source4/torture/raw/setfileinfo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture/raw/setfileinfo.c') diff --git a/source4/torture/raw/setfileinfo.c b/source4/torture/raw/setfileinfo.c index 247e54a4b0..3a49c8baff 100644 --- a/source4/torture/raw/setfileinfo.c +++ b/source4/torture/raw/setfileinfo.c @@ -525,6 +525,11 @@ BOOL torture_raw_sfileinfo_bug(int dummy) NTSTATUS status; int fnum; + if (lp_parm_int(-1, "torture", "dangerous") != 1) { + printf("torture_raw_sfileinfo_bug disabled - enable dangerous tests to use\n"); + return True; + } + if (!torture_open_connection(&cli)) { return False; } -- cgit