18 lines
454 B
Go
18 lines
454 B
Go
package control
|
|
|
|
import (
|
|
"runtime"
|
|
"testing"
|
|
)
|
|
|
|
func TestPipeNameWindowsCaseInsensitive(t *testing.T) {
|
|
if runtime.GOOS != "windows" {
|
|
t.Skip("windows-only path normalization test")
|
|
}
|
|
upper := pipeNameForExecutable(`D:\Build\reims-go\build\bin\reims-go.exe`)
|
|
lower := pipeNameForExecutable(`d:\build\reims-go\build\bin\reims-go.exe`)
|
|
if upper != lower {
|
|
t.Fatalf("expected case-insensitive pipe name on Windows: %q != %q", upper, lower)
|
|
}
|
|
}
|