diff options
author | Jeremy Allison <jra@samba.org> | 2008-03-11 10:21:09 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-03-11 10:21:09 -0700 |
commit | de4a4954383584b349f9fd1605a88851dc5d261c (patch) | |
tree | 56fc0e234b7667d600511e2e0982bfe9292a34de /source4/torture/raw/rename.c | |
parent | 9703948850fb6febb237d701ce6b6300e9df8e1f (diff) | |
download | samba-de4a4954383584b349f9fd1605a88851dc5d261c.tar.gz samba-de4a4954383584b349f9fd1605a88851dc5d261c.tar.bz2 samba-de4a4954383584b349f9fd1605a88851dc5d261c.zip |
Test trans2 renames with oplocks. It looks like trans2 renames
ignore share modes and oplock breaks :-(.
Jeremy.
(This used to be commit a8a5339cf2ca218668f888eced5ffe7ce059553c)
Diffstat (limited to 'source4/torture/raw/rename.c')
-rw-r--r-- | source4/torture/raw/rename.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/raw/rename.c b/source4/torture/raw/rename.c index 4b0d986659..308bd7f8dc 100644 --- a/source4/torture/raw/rename.c +++ b/source4/torture/raw/rename.c @@ -434,6 +434,7 @@ done: return ret; } +extern bool test_trans2rename(struct torture_context *tctx, struct smbcli_state *cli1, struct smbcli_state *cli2); /* basic testing of rename calls @@ -443,6 +444,9 @@ struct torture_suite *torture_raw_rename(TALLOC_CTX *mem_ctx) struct torture_suite *suite = torture_suite_create(mem_ctx, "RENAME"); torture_suite_add_1smb_test(suite, "mv", test_mv); + /* test_trans2rename is actually in torture/raw/oplock.c to + use the handlers and macros there. */ + torture_suite_add_2smb_test(suite, "trans2rename", test_trans2rename); torture_suite_add_1smb_test(suite, "ntrename", test_ntrename); return suite; |