s4 torture: Move target macros to a common header instead of redefining them in multi...
authorTim Prouty <tprouty@samba.org>
Wed, 25 Nov 2009 22:38:55 +0000 (14:38 -0800)
committerTim Prouty <tprouty@samba.org>
Tue, 1 Dec 2009 19:12:51 +0000 (11:12 -0800)
source4/torture/raw/lock.c
source4/torture/smb2/create.c
source4/torture/util.h

index 1ccba61c55a80ea5fe3188d3ba31475a39628a14..610cac9f45a239468daf4d9a0fcd71906c607198 100644 (file)
        }} while (0)
 #define BASEDIR "\\testlock"
 
-#define TARGET_IS_W2K8(_tctx) (torture_setting_bool(_tctx, "w2k8", false))
-#define TARGET_IS_WIN7(_tctx) (torture_setting_bool(_tctx, "win7", false))
-#define TARGET_IS_SAMBA3(_tctx) (torture_setting_bool(_tctx, "samba3", false))
-#define TARGET_IS_SAMBA4(_tctx) (torture_setting_bool(_tctx, "samba4", false))
-
 /*
   test SMBlock and SMBunlock ops
 */
index f93567f5e59478f6741c28a35262c57d9b54a94a..b006047e945c4641cd5f7ae7fa530123b932f6e1 100644 (file)
                       __location__, sattrib, fname); \
        }} while (0)
 
-#define TARGET_IS_WIN7(_tctx) (torture_setting_bool(_tctx, "win7", false))
-
 /*
   test some interesting combinations found by gentest
  */
index 501d14d57c1d314c7471bb2f13ef0903f4f29fc3..35662416b5ab274e7531e7ce2cfb4d4d8de39f26 100644 (file)
 struct smbcli_state;
 struct smbcli_tree;
 
+/**
+ * Useful target macros for handling server bugs in torture tests.
+ */
+#define TARGET_IS_W2K8(_tctx) (torture_setting_bool(_tctx, "w2k8", false))
+#define TARGET_IS_WIN7(_tctx) (torture_setting_bool(_tctx, "win7", false))
+#define TARGET_IS_SAMBA3(_tctx) (torture_setting_bool(_tctx, "samba3", false))
+#define TARGET_IS_SAMBA4(_tctx) (torture_setting_bool(_tctx, "samba4", false))
+
 /**
   setup a directory ready for a test
 */