]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: check the correct environment variable in TestCgoCallbackGC
authorCherry Mui <cherryyz@google.com>
Tue, 21 Dec 2021 00:08:14 +0000 (19:08 -0500)
committerCherry Mui <cherryyz@google.com>
Tue, 21 Dec 2021 01:10:17 +0000 (01:10 +0000)
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>
src/runtime/testdata/testprogcgo/callback.go

index a2d8a492a47a8fa1fecde9ba5173d189c1fed6fc..25f07159b86c92a653b00ce9b7f46595f43e813a 100644 (file)
@@ -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)