| 1 | // Copyright 2020 Brad Fitzpatrick. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package assume_no_moving_gc |
| 6 | |
| 7 | import ( |
| 8 | "os" |
| 9 | "runtime" |
| 10 | "testing" |
| 11 | ) |
| 12 | |
| 13 | func TestInit(t *testing.T) { |
| 14 | if e := os.Getenv(env); e != "" { |
| 15 | t.Skipf("env %s is set to %q; skipping test", env, e) |
| 16 | } |
| 17 | t.Logf("%s doesn't use a moving collector", runtime.Version()) |
| 18 | } |