1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-19 12:23:49 +03:00

tests: Clean up behind ourselves in test_create_reparse

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2024-05-03 14:52:42 +02:00
committed by Jeremy Allison
parent 4536cfb1ec
commit 7dc07710fb

View File

@@ -74,9 +74,11 @@ class ReparsePoints(samba.tests.libsmb.LibsmbTests):
fd = conn.create(
filename,
DesiredAccess=sec.SEC_FILE_WRITE_ATTRIBUTE,
DesiredAccess=sec.SEC_FILE_WRITE_ATTRIBUTE | sec.SEC_STD_DELETE,
CreateDisposition=libsmb.FILE_CREATE)
conn.delete_on_close(fd, 1)
with self.assertRaises(NTSTATUSError) as e:
conn.fsctl(fd, libsmb.FSCTL_SET_REPARSE_POINT, b'', 0)