From: Alex Brainman Date: Fri, 8 Apr 2011 00:43:25 +0000 (+1000) Subject: test/bench: enable build and test on Windows X-Git-Tag: weekly.2011-04-13~68 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=776fd72579a85e1e6e7d62942a46ddf3940893a9;p=gostls13.git test/bench: enable build and test on Windows R=golang-dev, rsc1 CC=golang-dev https://golang.org/cl/4366043 --- diff --git a/src/run.bash b/src/run.bash index 8ad11e2ae2..91cd3cc997 100755 --- a/src/run.bash +++ b/src/run.bash @@ -113,7 +113,6 @@ do done [ "$GOARCH" == arm ] || -[ "$GOHOSTOS" == windows ] || (xcd ../test/bench ./timing.sh -test ) || exit $? diff --git a/test/bench/regex-dna-parallel.go b/test/bench/regex-dna-parallel.go index e8e62b806d..1335e4d34f 100644 --- a/test/bench/regex-dna-parallel.go +++ b/test/bench/regex-dna-parallel.go @@ -89,7 +89,7 @@ func countMatches(pat string, bytes []byte) int { func main() { runtime.GOMAXPROCS(4) - bytes, err := ioutil.ReadFile("/dev/stdin") + bytes, err := ioutil.ReadAll(os.Stdin) if err != nil { fmt.Fprintf(os.Stderr, "can't read input: %s\n", err) os.Exit(2) diff --git a/test/bench/regex-dna.go b/test/bench/regex-dna.go index dc31db7685..042d7f2836 100644 --- a/test/bench/regex-dna.go +++ b/test/bench/regex-dna.go @@ -87,7 +87,7 @@ func countMatches(pat string, bytes []byte) int { } func main() { - bytes, err := ioutil.ReadFile("/dev/stdin") + bytes, err := ioutil.ReadAll(os.Stdin) if err != nil { fmt.Fprintf(os.Stderr, "can't read input: %s\n", err) os.Exit(2)