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:
parent
2683c76d95
commit
776fd72579
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user