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) }