Closed
Description
What version of Go are you using (go version
)?
$ go version go version devel +1fba10c999 Wed Oct 9 15:07:29 2019 +0000 linux/amd64
Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/homes/hawklords/cks/.cache/go-build" GOENV="/homes/hawklords/cks/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/homes/hawklords/cks/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/data/code/go-lang/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/data/code/go-lang/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/data/code/go-lang/go/src/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmpfs/go-build183007954=/tmp/go-build -gno-record-gcc-switches"
What did you do?
Starting with commit 1fba10c (which is to fix issue #29062), running all.bash
in a terminal causes the TestIsTerminal test to fail:
$ ./all.bash
[...]
##### GOMAXPROCS=2 runtime -cpu=1,2,4 -quick
ok runtime 9.289s
##### cmd/go terminal test
--- FAIL: TestIsTerminal (0.00s)
terminal_test.go:34: stdout is not a terminal
terminal_test.go:37: stderr is not a terminal
FAIL
exit status 1
FAIL cmd/go/testdata/testterminal18153 0.001s
2019/10/09 11:54:08 Failed: exit status 1
Running all.bash
in a context where it doesn't have a terminal (pty) available causes this test to be skipped, resulting in no failure, which may be why the builders aren't picking up on this test failure.