summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-23 05:40:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:33 -0500
commitb394a4c2ff4502a0bf2bf05a6c7036f708fdb090 (patch)
tree5ef7e34990e5987e6b095490bf58ecec29f18dd9 /source4/torture/raw
parent493a37ba663686b7bee3f7093d6650a24250f101 (diff)
downloadsamba-b394a4c2ff4502a0bf2bf05a6c7036f708fdb090.tar.gz
samba-b394a4c2ff4502a0bf2bf05a6c7036f708fdb090.tar.bz2
samba-b394a4c2ff4502a0bf2bf05a6c7036f708fdb090.zip
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)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/setfileinfo.c5
1 files changed, 5 insertions, 0 deletions
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;
}