diff options
author | Ian Lance Taylor <iant@golang.org> | 2018-09-14 10:04:12 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-09-14 19:45:53 +0000 |
commit | 0e21cc2ba0823f2130d950eccf7c023b161d1331 (patch) | |
tree | 3771182db9bcceeb946cbedb8d4ed22be784e5d0 /src/runtime/crash_test.go | |
parent | b1f656b1ceb09124f2d8ad63ceceb8df20a581c2 (diff) | |
download | go-0e21cc2ba0823f2130d950eccf7c023b161d1331.tar.gz go-0e21cc2ba0823f2130d950eccf7c023b161d1331.zip |
runtime: use CleanCmdEnv in TestRuntimePanic
This makes TestRuntimePanic keep most of the existing environment,
just as the other runtime tests do.
Change-Id: I7944abfeee292d41716dca14483134a50d75f081
Reviewed-on: https://go-review.googlesource.com/135376
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/crash_test.go')
-rw-r--r-- | src/runtime/crash_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go index 2766b8850a..6835cacb3f 100644 --- a/src/runtime/crash_test.go +++ b/src/runtime/crash_test.go @@ -686,7 +686,7 @@ func init() { func TestRuntimePanic(t *testing.T) { testenv.MustHaveExec(t) - cmd := exec.Command(os.Args[0], "-test.run=TestRuntimePanic") + cmd := testenv.CleanCmdEnv(exec.Command(os.Args[0], "-test.run=TestRuntimePanic")) cmd.Env = append(cmd.Env, "GO_TEST_RUNTIME_PANIC=1") out, err := cmd.CombinedOutput() t.Logf("%s", out) |