]> Cypherpunks repositories - gostls13.git/commitdiff
test/fixedbugs: fix issue48784.go to pass with -G=0
authorBryan C. Mills <bcmills@google.com>
Thu, 7 Oct 2021 18:23:54 +0000 (14:23 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 7 Oct 2021 18:58:33 +0000 (18:58 +0000)
This test is currently failing in the longtest builders.

I do not know how or why the builders are adding the -G=0 parameter.

Updates #48784

Change-Id: I62248d3fbc47567a8c73b4868a2d4aeb0bc47bc3
Reviewed-on: https://go-review.googlesource.com/c/go/+/354631
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

test/fixedbugs/issue48784.go

index 6048518df21d2340a70f9154945a2bdc940319e8..b07f5243053dff0aed577b5cf90abf521bc11299 100644 (file)
@@ -15,9 +15,9 @@ var t T
 var a [1]int
 
 var (
-       _ = s == nil // ERROR "invalid operation:.*mismatched types string and untyped nil"
-       _ = b == nil // ERROR "invalid operation:.*mismatched types bool and untyped nil"
-       _ = i == nil // ERROR "invalid operation:.*mismatched types int and untyped nil"
-       _ = t == nil // ERROR "invalid operation:.*mismatched types T and untyped nil"
-       _ = a == nil // ERROR "invalid operation:.*mismatched types \[1\]int and untyped nil"
+       _ = s == nil // ERROR "invalid operation:.*mismatched types string and (untyped )?nil"
+       _ = b == nil // ERROR "invalid operation:.*mismatched types bool and (untyped )?nil"
+       _ = i == nil // ERROR "invalid operation:.*mismatched types int and (untyped )?nil"
+       _ = t == nil // ERROR "invalid operation:.*mismatched types T and (untyped )?nil"
+       _ = a == nil // ERROR "invalid operation:.*mismatched types \[1\]int and (untyped )?nil"
 )