From: Austin Clements Date: Tue, 26 May 2015 19:21:18 +0000 (-0400) Subject: runtime: use stripped test environment for TestGdbPython X-Git-Tag: go1.5beta1~453 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4a1957d0aaad9c6700b4bdab19af611e68468bf3;p=gostls13.git runtime: use stripped test environment for TestGdbPython Most runtime tests that invoke the compiler to build a sub-test binary do so with a special environment constructed by testEnv that strips out environment variables that should apply to the test but not to the build. Fix TestGdbPython to use this test environment when invoking go build, like other tests do. Change-Id: Iafdf89d4765c587cbebc427a5d61cb8a7e71b326 Reviewed-on: https://go-review.googlesource.com/10455 Reviewed-by: Russ Cox --- diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go index 8d04f6328c..f4014b2e05 100644 --- a/src/runtime/runtime-gdb_test.go +++ b/src/runtime/runtime-gdb_test.go @@ -59,7 +59,7 @@ func TestGdbPython(t *testing.T) { cmd := exec.Command("go", "build", "-o", "a.exe") cmd.Dir = dir - out, err := cmd.CombinedOutput() + out, err := testEnv(cmd).CombinedOutput() if err != nil { t.Fatalf("building source %v\n%s", err, out) }