summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-25 16:01:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:13 -0500
commit909b111f587705a45f63540b39968f1af58a9b5d (patch)
tree48355b5250c40932b0c5a9dde2e5ade2c3fc29df /source4/torture/smb2
parent6c5853aa8d6dfbfeb96d705cbd157544352f810e (diff)
downloadsamba-909b111f587705a45f63540b39968f1af58a9b5d.tar.gz
samba-909b111f587705a45f63540b39968f1af58a9b5d.tar.bz2
samba-909b111f587705a45f63540b39968f1af58a9b5d.zip
r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/connect.c3
-rw-r--r--source4/torture/smb2/find.c3
-rw-r--r--source4/torture/smb2/getinfo.c3
-rw-r--r--source4/torture/smb2/scan.c9
-rw-r--r--source4/torture/smb2/setinfo.c3
5 files changed, 13 insertions, 8 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c
index 10b7046375..349fcda992 100644
--- a/source4/torture/smb2/connect.c
+++ b/source4/torture/smb2/connect.c
@@ -25,6 +25,7 @@
#include "librpc/gen_ndr/security.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
+#include "torture/torture.h"
#include "torture/smb2/proto.h"
/*
@@ -187,7 +188,7 @@ static struct smb2_handle torture_smb2_create(struct smb2_tree *tree,
/*
basic testing of SMB2 connection calls
*/
-BOOL torture_smb2_connect(void)
+BOOL torture_smb2_connect(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
diff --git a/source4/torture/smb2/find.c b/source4/torture/smb2/find.c
index 19e41fdc7e..49b4030c07 100644
--- a/source4/torture/smb2/find.c
+++ b/source4/torture/smb2/find.c
@@ -24,6 +24,7 @@
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
+#include "torture/torture.h"
#include "torture/smb2/proto.h"
static struct {
@@ -204,7 +205,7 @@ static BOOL torture_smb2_find_levels(struct smb2_tree *tree)
/* basic testing of all SMB2 find levels
*/
-BOOL torture_smb2_find(void)
+BOOL torture_smb2_find(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c
index f52025c702..dac6225381 100644
--- a/source4/torture/smb2/getinfo.c
+++ b/source4/torture/smb2/getinfo.c
@@ -24,6 +24,7 @@
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
+#include "torture/torture.h"
#include "torture/smb2/proto.h"
static struct {
@@ -160,7 +161,7 @@ static BOOL torture_smb2_fsinfo(struct smb2_tree *tree)
/* basic testing of all SMB2 getinfo levels
*/
-BOOL torture_smb2_getinfo(void)
+BOOL torture_smb2_getinfo(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
diff --git a/source4/torture/smb2/scan.c b/source4/torture/smb2/scan.c
index 44dced9427..28e83541c7 100644
--- a/source4/torture/smb2/scan.c
+++ b/source4/torture/smb2/scan.c
@@ -25,6 +25,7 @@
#include "libcli/smb2/smb2_calls.h"
#include "lib/cmdline/popt_common.h"
#include "lib/events/events.h"
+#include "torture/torture.h"
#include "torture/smb2/proto.h"
@@ -35,7 +36,7 @@
/*
scan for valid SMB2 getinfo levels
*/
-BOOL torture_smb2_getinfo_scan(void)
+BOOL torture_smb2_getinfo_scan(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
@@ -103,7 +104,7 @@ BOOL torture_smb2_getinfo_scan(void)
/*
scan for valid SMB2 setinfo levels
*/
-BOOL torture_smb2_setinfo_scan(void)
+BOOL torture_smb2_setinfo_scan(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
@@ -150,7 +151,7 @@ BOOL torture_smb2_setinfo_scan(void)
/*
scan for valid SMB2 scan levels
*/
-BOOL torture_smb2_find_scan(void)
+BOOL torture_smb2_find_scan(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
@@ -197,7 +198,7 @@ BOOL torture_smb2_find_scan(void)
/*
scan for valid SMB2 opcodes
*/
-BOOL torture_smb2_scan(void)
+BOOL torture_smb2_scan(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
diff --git a/source4/torture/smb2/setinfo.c b/source4/torture/smb2/setinfo.c
index e046d70acf..18cf841f15 100644
--- a/source4/torture/smb2/setinfo.c
+++ b/source4/torture/smb2/setinfo.c
@@ -25,6 +25,7 @@
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
+#include "torture/torture.h"
#include "torture/smb2/proto.h"
#define BASEDIR ""
@@ -33,7 +34,7 @@
for each call we test that it succeeds, and where possible test
for consistency between the calls.
*/
-BOOL torture_smb2_setinfo(void)
+BOOL torture_smb2_setinfo(struct torture_context *torture)
{
struct smb2_tree *tree;
BOOL ret = True;