1
0
mirror of https://github.com/golang/go synced 2024-11-24 07:10:18 -07:00

test/bench: enable build and test on Windows

R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4366043
This commit is contained in:
Alex Brainman 2011-04-08 10:43:25 +10:00
parent 2683c76d95
commit 776fd72579
3 changed files with 2 additions and 3 deletions

View File

@ -113,7 +113,6 @@ do
done
[ "$GOARCH" == arm ] ||
[ "$GOHOSTOS" == windows ] ||
(xcd ../test/bench
./timing.sh -test
) || exit $?

View File

@ -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)

View File

@ -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)