feat: add native Windows hierarchy test harness
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user