mirror of https://github.com/golang/go.git
Use testenv.MustHaveExec instead of skipping based on GOOS
This commit is contained in:
parent
c431241f13
commit
83f64d757b
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
. "flag"
|
. "flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"internal/testenv"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"runtime"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -548,9 +548,7 @@ func TestRangeError(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestExitCode(t *testing.T) {
|
func TestExitCode(t *testing.T) {
|
||||||
if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
|
testenv.MustHaveExec(t)
|
||||||
t.Skip("skipping on windows and plan9")
|
|
||||||
}
|
|
||||||
|
|
||||||
magic := 123
|
magic := 123
|
||||||
if os.Getenv("GO_CHILD_FLAG") != "" {
|
if os.Getenv("GO_CHILD_FLAG") != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue