-
Notifications
You must be signed in to change notification settings - Fork 18k
go/internal/gccgoimporter: TestInstallationImporter broken with tip gccgo #44425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Change https://golang.org/cl/294290 mentions this issue: |
@gopherbot Please backport to 1.16 This is fixed on tip, but causes a test failure on 1.16 when gccgo is installed. The fix is trivial (https://golang.org/cl/294290) so let's backport it. |
Backport issue(s) opened: #47610 (for 1.16). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/340952 mentions this issue: |
Change https://golang.org/cl/362247 mentions this issue: |
Change the TestInstallationImporter testpoint to query type information for sort.Search instead of sort.Ints. The latter function changed recently (1.16 timeframe), parameter "a" is now "x". A better candidate for this sort of query is sort.Search, which has been stable or a while. This is a copy of CL 294290 from the main repo. Updates golang/go#44425. Change-Id: Ibc79602cafc46c20be4b085f9a92977b06f9d658 Reviewed-on: https://go-review.googlesource.com/c/tools/+/362247 Trust: Than McIntosh <thanm@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This requires using "tip" gccgo, as opposed to released gccgo. Add "gccgo" to PATH, then
What did you expect to see?
Passing test
What did you see instead?
This faliure:
It looks as though the signature for sorts.Int was changed as part of 1.16 in af87480, and this change has now made it into gccgo tip at https://go-review.googlesource.com/c/gofrontend/+/280172. Given that the test is picking
sort.Ints
in an arbitrary fashion, it's probably best to pick a different type to examine.The text was updated successfully, but these errors were encountered: