feat: add native Windows hierarchy test harness

This commit is contained in:
2026-09-09 16:48:54 +00:00
parent 8985457d37
commit 409b64a2fb
30 changed files with 1033 additions and 44 deletions
@@ -0,0 +1,18 @@
//go:build windows
package spool
import (
"path/filepath"
"testing"
)
func TestEnsurePrivateFileAcceptsExistingPrivateFile(t *testing.T) {
path := filepath.Join(t.TempDir(), "spool.lock")
if err := ensurePrivateFile(path); err != nil {
t.Fatalf("create private file: %v", err)
}
if err := ensurePrivateFile(path); err != nil {
t.Fatalf("recheck existing private file: %v", err)
}
}