Skip to content

Commit 779331a

Browse files
adonovangopherbot
authored andcommitted
gopls/internal/test/integration/misc: only test asm on {arm,amd}64
Fixes golang/go#71956 for real this time Change-Id: I3db07168da163ea6c8fdeefda28f64b94fe2ed57 Reviewed-on: https://go-review.googlesource.com/c/tools/+/652695 Reviewed-by: Robert Findley <[email protected]> Commit-Queue: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Alan Donovan <[email protected]>
1 parent 5dc980c commit 779331a

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

gopls/internal/test/integration/misc/webserver_test.go

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -604,18 +604,24 @@ func init() {
604604
// Check that code in a package-level var initializer is found too.
605605
{
606606
report := asmFor(`f\(123\)`)
607-
checkMatch(t, true, report, `TEXT.*example.com/a.init`)
608-
checkMatch(t, true, report, `MOV.? \$123`)
609-
checkMatch(t, true, report, `MOV.? \$456`)
610-
checkMatch(t, true, report, `CALL example.com/a.f`)
607+
switch runtime.GOARCH {
608+
case "amd64", "arm64":
609+
checkMatch(t, true, report, `TEXT.*example.com/a.init`)
610+
checkMatch(t, true, report, `MOV.? \$123`)
611+
checkMatch(t, true, report, `MOV.? \$456`)
612+
checkMatch(t, true, report, `CALL example.com/a.f`)
613+
}
611614
}
612615

613616
// And code in a source-level init function.
614617
{
615618
report := asmFor(`f\(789\)`)
616-
checkMatch(t, true, report, `TEXT.*example.com/a.init`)
617-
checkMatch(t, true, report, `MOV.? \$789`)
618-
checkMatch(t, true, report, `CALL example.com/a.f`)
619+
switch runtime.GOARCH {
620+
case "amd64", "arm64":
621+
checkMatch(t, true, report, `TEXT.*example.com/a.init`)
622+
checkMatch(t, true, report, `MOV.? \$789`)
623+
checkMatch(t, true, report, `CALL example.com/a.f`)
624+
}
619625
}
620626
})
621627
}

0 commit comments

Comments
 (0)