go.tools/oracle: disable TestOracle test on windows (fixes windows build)

windows does not have required /usr/bin/diff program

R=golang-dev, r
CC=adonovan, golang-dev
https://golang.org/cl/13353047
This commit is contained in:
Alex Brainman 2013-08-29 14:04:05 +10:00
parent b38e3512f0
commit 7f887510d9
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,7 @@ import (
"os"
"os/exec"
"regexp"
"runtime"
"strconv"
"strings"
"testing"
@ -179,6 +180,11 @@ func doQuery(out io.Writer, q *query) {
}
func TestOracle(t *testing.T) {
switch runtime.GOOS {
case "windows":
t.Skipf("skipping test on %q (no /usr/bin/diff)", runtime.GOOS)
}
for _, filename := range []string{
"testdata/src/main/calls.go",
"testdata/src/main/describe.go",