git.samba.org
/
pfilipensky
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4536cfb
)
tests: Clean up behind ourselves in test_create_reparse
author
Volker Lendecke
<vl@samba.org>
Fri, 3 May 2024 12:52:42 +0000
(14:52 +0200)
committer
Jeremy Allison
<jra@samba.org>
Mon, 6 May 2024 20:55:37 +0000
(20:55 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/reparsepoints.py
patch
|
blob
|
history
diff --git
a/python/samba/tests/reparsepoints.py
b/python/samba/tests/reparsepoints.py
index 76bfb6a733abac268f295ba35440cbe767d6514a..3da6aedf97426e31b46ab04f753ced221589bfc8 100644
(file)
--- a/
python/samba/tests/reparsepoints.py
+++ b/
python/samba/tests/reparsepoints.py
@@
-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)