diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2011-04-08 10:43:25 +1000 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2011-04-08 10:43:25 +1000 |
commit | c0b9fc9d9c32d10f8b636a9a65c81cbc3fc45b8b (patch) | |
tree | 7581921e44f97596adf13e8b7fbc49eab3256ebd /test/bench | |
parent | 730e2507addaccea698ca474ec13576cc67173f3 (diff) | |
download | go-c0b9fc9d9c32d10f8b636a9a65c81cbc3fc45b8b.tar.gz |
test/bench: enable build and test on Windows
R=golang-dev, rsc1
CC=golang-dev
http://codereview.appspot.com/4366043
Diffstat (limited to 'test/bench')
-rw-r--r-- | test/bench/regex-dna-parallel.go | 2 | ||||
-rw-r--r-- | test/bench/regex-dna.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/bench/regex-dna-parallel.go b/test/bench/regex-dna-parallel.go index e8e62b806..1335e4d34 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 dc31db768..042d7f283 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) |