File tree 2 files changed +15
-15
lines changed
2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -2189,21 +2189,6 @@ func TestIssue11709(t *testing.T) {
2189
2189
tg .run ("run" , tg .path ("run.go" ))
2190
2190
}
2191
2191
2192
- func TestIssue12096 (t * testing.T ) {
2193
- tg := testgo (t )
2194
- defer tg .cleanup ()
2195
- tg .tempFile ("test_test.go" , `
2196
- package main
2197
- import ("os"; "testing")
2198
- func TestEnv(t *testing.T) {
2199
- if os.Getenv("TERM") != "" {
2200
- t.Fatal("TERM is set")
2201
- }
2202
- }` )
2203
- tg .unsetenv ("TERM" )
2204
- tg .run ("test" , tg .path ("test_test.go" ))
2205
- }
2206
-
2207
2192
func TestGoBuildARM (t * testing.T ) {
2208
2193
if testing .Short () {
2209
2194
t .Skip ("skipping cross-compile in short mode" )
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments