summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-11-01 00:01:31 +0100
committerMichael Adam <obnox@samba.org>2011-11-01 03:20:37 +0100
commita4e36df78ab3b500dc92d3fe5dbc6b58958f9a19 (patch)
treeb361525bf663b7be94dcc42065d81c474d5c994e /source4/torture/smb2
parenta9b31e68cfc8232e7e9aa60f70895f2ad0f245be (diff)
downloadsamba-a4e36df78ab3b500dc92d3fe5dbc6b58958f9a19.tar.gz
samba-a4e36df78ab3b500dc92d3fe5dbc6b58958f9a19.tar.bz2
samba-a4e36df78ab3b500dc92d3fe5dbc6b58958f9a19.zip
s4:torture:smb2: rename the durable-open.basic2 test to durable-open.open2 for clarity
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/durable_open.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c
index 6e62d4e36c..35f4461854 100644
--- a/source4/torture/smb2/durable_open.c
+++ b/source4/torture/smb2/durable_open.c
@@ -204,11 +204,11 @@ struct durable_open_vs_lease durable_open_vs_lease_table[NUM_LEASE_OPEN_TESTS] =
{ "RHW", true },
};
-static bool test_one_durable_open_basic2(struct torture_context *tctx,
- struct smb2_tree *tree,
- const char *fname,
- struct smb2_create io,
- struct durable_open_vs_lease test)
+static bool test_one_durable_open_open2(struct torture_context *tctx,
+ struct smb2_tree *tree,
+ const char *fname,
+ struct smb2_create io,
+ struct durable_open_vs_lease test)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
@@ -251,8 +251,8 @@ done:
return ret;
}
-bool test_durable_open_basic2(struct torture_context *tctx,
- struct smb2_tree *tree)
+bool test_durable_open_open2(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
@@ -261,7 +261,7 @@ bool test_durable_open_basic2(struct torture_context *tctx,
int i;
/* Choose a random name in case the state is left a little funky. */
- snprintf(fname, 256, "durable_open_basic2_%s.dat", generate_random_str(tctx, 8));
+ snprintf(fname, 256, "durable_open_open2_%s.dat", generate_random_str(tctx, 8));
smb2_util_unlink(tree, fname);
@@ -286,11 +286,11 @@ bool test_durable_open_basic2(struct torture_context *tctx,
/* test various oplock levels with durable open */
for (i = 0; i < NUM_LEASE_OPEN_TESTS; i++) {
- ret = test_one_durable_open_basic2(tctx,
- tree,
- fname,
- io,
- durable_open_vs_lease_table[i]);
+ ret = test_one_durable_open_open2(tctx,
+ tree,
+ fname,
+ io,
+ durable_open_vs_lease_table[i]);
if (ret == false) {
goto done;
}
@@ -868,7 +868,7 @@ struct torture_suite *torture_smb2_durable_open_init(void)
torture_suite_create(talloc_autofree_context(), "durable-open");
torture_suite_add_1smb2_test(suite, "open1", test_durable_open_open1);
- torture_suite_add_1smb2_test(suite, "basic2", test_durable_open_basic2);
+ torture_suite_add_1smb2_test(suite, "open2", test_durable_open_open2);
torture_suite_add_2smb2_test(suite, "file-position",
test_durable_open_file_position);
torture_suite_add_2smb2_test(suite, "oplock", test_durable_open_oplock);