git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a36e257
)
s4:torture:smb2:durable-open: rename the open test to open-lease
author
Michael Adam
<obnox@samba.org>
Tue, 21 Feb 2012 17:01:57 +0000
(18:01 +0100)
committer
Michael Adam
<obnox@samba.org>
Tue, 21 Feb 2012 17:11:06 +0000
(18:11 +0100)
source4/torture/smb2/durable_open.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/durable_open.c
b/source4/torture/smb2/durable_open.c
index 2d554a395de94c023ea0737d0d92e2c251b36b0b..d8b71ef61bf4b41d4879db37b7b5bfa781e4e444 100644
(file)
--- a/
source4/torture/smb2/durable_open.c
+++ b/
source4/torture/smb2/durable_open.c
@@
-979,9
+979,9
@@
bool test_durable_open_lock(struct torture_context *tctx,
reconnect after an open, the oplock/lease tests above will certainly
demonstrate an error on reconnect.
*/
reconnect after an open, the oplock/lease tests above will certainly
demonstrate an error on reconnect.
*/
-bool test_durable_open_open(struct torture_context *tctx,
- struct smb2_tree *tree1,
- struct smb2_tree *tree2)
+bool test_durable_open_open
_lease
(struct torture_context *tctx,
+
struct smb2_tree *tree1,
+
struct smb2_tree *tree2)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
@@
-997,7
+997,8
@@
bool test_durable_open_open(struct torture_context *tctx,
* little funky.
*/
lease = random();
* little funky.
*/
lease = random();
- snprintf(fname, 256, "durable_open_open_%s.dat", generate_random_str(tctx, 8));
+ snprintf(fname, 256, "durable_open_open_lease_%s.dat",
+ generate_random_str(tctx, 8));
/* Clean slate */
smb2_util_unlink(tree1, fname);
/* Clean slate */
smb2_util_unlink(tree1, fname);
@@
-1082,7
+1083,8
@@
struct torture_suite *torture_smb2_durable_open_init(void)
torture_suite_add_2smb2_test(suite, "oplock", test_durable_open_oplock);
torture_suite_add_2smb2_test(suite, "lease", test_durable_open_lease);
torture_suite_add_1smb2_test(suite, "lock", test_durable_open_lock);
torture_suite_add_2smb2_test(suite, "oplock", test_durable_open_oplock);
torture_suite_add_2smb2_test(suite, "lease", test_durable_open_lease);
torture_suite_add_1smb2_test(suite, "lock", test_durable_open_lock);
- torture_suite_add_2smb2_test(suite, "open", test_durable_open_open);
+ torture_suite_add_2smb2_test(suite, "open-lease",
+ test_durable_open_open_lease);
suite->description = talloc_strdup(suite, "SMB2-DURABLE-OPEN tests");
suite->description = talloc_strdup(suite, "SMB2-DURABLE-OPEN tests");