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

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

View as plain text