mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s4: torture: run test_durable_v2_open_reopen2_lease() in a subdirectory
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13535 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
ba991da434
commit
725319743f
1
selftest/knownfail.d/samba3.smb2.durable-v2-open
Normal file
1
selftest/knownfail.d/samba3.smb2.durable-v2-open
Normal file
@ -0,0 +1 @@
|
||||
^samba3.smb2.durable-v2-open.reopen2-lease-v2\(nt4_dc\)$
|
@ -1518,9 +1518,15 @@ bool test_durable_v2_open_reopen2_lease_v2(struct torture_context *tctx,
|
||||
|
||||
options = tree->session->transport->options;
|
||||
|
||||
smb2_deltree(tree, __func__);
|
||||
status = torture_smb2_testdir(tree, __func__, &_h);
|
||||
torture_assert_ntstatus_ok_goto(tctx, status, ret, done,
|
||||
"torture_smb2_testdir failed\n");
|
||||
smb2_util_close(tree, _h);
|
||||
|
||||
/* Choose a random name in case the state is left a little funky. */
|
||||
snprintf(fname, 256, "durable_v2_open_reopen2_%s.dat",
|
||||
generate_random_str(tctx, 8));
|
||||
snprintf(fname, 256, "%s\\durable_v2_open_reopen2_%s.dat",
|
||||
__func__, generate_random_str(tctx, 8));
|
||||
|
||||
smb2_util_unlink(tree, fname);
|
||||
|
||||
@ -1726,6 +1732,7 @@ done:
|
||||
}
|
||||
|
||||
smb2_util_unlink(tree, fname);
|
||||
smb2_deltree(tree, __func__);
|
||||
|
||||
talloc_free(tree);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user