Commit 776fd725 authored by Alex Brainman's avatar Alex Brainman

test/bench: enable build and test on Windows

R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4366043
parent 2683c76d
......@@ -113,7 +113,6 @@ do
done
[ "$GOARCH" == arm ] ||
[ "$GOHOSTOS" == windows ] ||
(xcd ../test/bench
./timing.sh -test
) || exit $?
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment