From: Cherry Mui Date: Tue, 21 Dec 2021 00:08:14 +0000 (-0500) Subject: runtime: check the correct environment variable in TestCgoCallbackGC X-Git-Tag: go1.18beta2~199 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e0879490904495d26f762e19a997d4384bffa932;p=gostls13.git 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 Run-TryBot: Cherry Mui TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- 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)