...

Text file src/cmd/go/testdata/script/test_env_term.txt

Documentation: cmd/go/testdata/script

     1# Tests golang.org/issue/12096
     2
     3env TERM=''
     4go test test_test.go
     5! stdout '^ok.*\[no tests to run\]'
     6stdout '^ok'
     7
     8-- test_test.go --
     9package main
    10import ("os"; "testing")
    11func TestEnv(t *testing.T) {
    12	if os.Getenv("TERM") != "" {
    13		t.Fatal("TERM is set")
    14	}
    15}

View as plain text