fix(platform): normalize native paths for storage and backup validation

This commit is contained in:
eezd committed 2026-10-27 15:03:57 +08:00
1 parent bea53ce3c8
commit 1a8f70ca13
9 files changed
+120 -8

No files matched your search

+2 -1
View File
@@ -7,6 +7,7 @@ import (
"io"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
@@ -228,7 +229,7 @@ func TestLogRotationIsBounded(t *testing.T) {
}
for _, entry := range entries {
info, _ := entry.Info()
if info.Size() > 10<<20 || info.Mode().Perm() != 0600 {
if info.Size() > 10<<20 || (runtime.GOOS != "windows" && info.Mode().Perm() != 0600) {
t.Fatalf("日志未限量或权限不符: %+v", info)
}
}