blob: 8a5f79ab22013f76a6368c0515d5a8a173396af5 [file] [log] [blame]
# Tests golang.org/issue/12096
env TERM=''
go test test_test.go
! stdout '^ok.*\[no tests to run\]'
stdout '^ok'
-- test_test.go --
package main
import ("os"; "testing")
func TestEnv(t *testing.T) {
if os.Getenv("TERM") != "" {
t.Fatal("TERM is set")
}
}