fix(windows): protect lifecycle and backup state

This commit is contained in:
2026-08-18 14:05:52 +02:00
parent b6396e66fa
commit ada3f9fc7f
7 changed files with 122 additions and 21 deletions
@@ -820,6 +820,9 @@ func privateTestRoot(t *testing.T) string {
if err != nil {
t.Fatal(err)
}
if err := safeio.ProtectPrivateDirectory(root); err != nil {
t.Fatal(err)
}
t.Cleanup(func() { _ = os.RemoveAll(root) })
return root
}