|
|
|
|
@ -8,6 +8,7 @@ import ( |
|
|
|
|
"fmt" |
|
|
|
|
"io/ioutil" |
|
|
|
|
"os" |
|
|
|
|
"runtime" |
|
|
|
|
"strings" |
|
|
|
|
"testing" |
|
|
|
|
"unicode" |
|
|
|
|
@ -128,6 +129,14 @@ func TestRecover(t *testing.T) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func TestFilchStderr(t *testing.T) { |
|
|
|
|
if runtime.GOOS == "windows" { |
|
|
|
|
// TODO(bradfitz): this is broken on Windows but not
|
|
|
|
|
// fully sure why. Investigate. But notably, the
|
|
|
|
|
// stderrFD variable (defined in filch.go) and set
|
|
|
|
|
// below is only ever read in filch_unix.go. So just
|
|
|
|
|
// skip this for test for now.
|
|
|
|
|
t.Skip("test broken on Windows") |
|
|
|
|
} |
|
|
|
|
pipeR, pipeW, err := os.Pipe() |
|
|
|
|
if err != nil { |
|
|
|
|
t.Fatal(err) |
|
|
|
|
|