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 @@ -2174,21 +2174,6 @@ func TestGoBuildGOPATHOrderBroken(t *testing.T) {
2174
2174
tg .run ("install" , "-x" , "bar" )
2175
2175
}
2176
2176
2177
- func TestIssue11709 (t * testing.T ) {
2178
- tg := testgo (t )
2179
- defer tg .cleanup ()
2180
- tg .tempFile ("run.go" , `
2181
- package main
2182
- import "os"
2183
- func main() {
2184
- if os.Getenv("TERM") != "" {
2185
- os.Exit(1)
2186
- }
2187
- }` )
2188
- tg .unsetenv ("TERM" )
2189
- tg .run ("run" , tg .path ("run.go" ))
2190
- }
2191
-
2192
2177
func TestGoBuildARM (t * testing.T ) {
2193
2178
if testing .Short () {
2194
2179
t .Skip ("skipping cross-compile in short mode" )
Original file line number Diff line number Diff line change
1
+ # 'go run' should not pass extraneous environment variables to the subprocess.
2
+ go run run.go
3
+ ! stdout .
4
+ ! stderr .
5
+
6
+ -- run.go --
7
+ package main
8
+
9
+ import "os"
10
+
11
+ func main() {
12
+ if os.Getenv("TERM") != "" {
13
+ os.Exit(1)
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments