diff options
| author | Cherry Mui <cherryyz@google.com> | 2021-12-20 19:08:14 -0500 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2021-12-21 01:10:17 +0000 |
| commit | e0879490904495d26f762e19a997d4384bffa932 (patch) | |
| tree | 4393b0fb384c1850f864b23a63d3757b30d74250 /src/runtime/testdata | |
| parent | 15550625c3140efce8ea1d7d3193ec4c563eb117 (diff) | |
| download | go-e0879490904495d26f762e19a997d4384bffa932.tar.xz | |
runtime: check the correct environment variable in TestCgoCallbackGC
The test checks RUNTIME_TESTING_SHORT, whereas the test runner
actually set RUNTIME_TEST_SHORT. Check the correct one.
Updates #32023.
Change-Id: Ie8ab00e1f5b8c02112a9aa1ee0e56028185c8a44
Reviewed-on: https://go-review.googlesource.com/c/go/+/373614
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testprogcgo/callback.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/testdata/testprogcgo/callback.go b/src/runtime/testdata/testprogcgo/callback.go index a2d8a492a4..25f07159b8 100644 --- a/src/runtime/testdata/testprogcgo/callback.go +++ b/src/runtime/testdata/testprogcgo/callback.go @@ -66,7 +66,7 @@ func grow1(x, sum *int) int { func CgoCallbackGC() { P := 100 - if os.Getenv("RUNTIME_TESTING_SHORT") != "" { + if os.Getenv("RUNTIME_TEST_SHORT") != "" { P = 10 } done := make(chan bool) |
