mirror of
https://github.com/golang/go
synced 2024-11-23 20:30:04 -07:00
cmd/internal/obj/x86: fix oclass tests for Hsolaris
Use objabi.Hlinux for now. Fixes #32028 Change-Id: If9745f72c0ee4444ea2a2faa50813d2e1ac2bf97 Reviewed-on: https://go-review.googlesource.com/c/go/+/177077 Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
6081a9f7e6
commit
a75bfb05b3
@ -6,6 +6,7 @@ package x86
|
||||
|
||||
import (
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/objabi"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@ -208,13 +209,17 @@ func TestOclass(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
t.Run("AMD64", func(t *testing.T) {
|
||||
// TODO(quasilyte): test edge cases for Hsolaris, etc?
|
||||
|
||||
t.Run("linux/AMD64", func(t *testing.T) {
|
||||
ctxtAMD64 := obj.Linknew(&Linkamd64)
|
||||
ctxtAMD64.Headtype = objabi.Hlinux // See #32028
|
||||
runTest(t, ctxtAMD64, oclassTestsAMD64)
|
||||
})
|
||||
|
||||
t.Run("386", func(t *testing.T) {
|
||||
t.Run("linux/386", func(t *testing.T) {
|
||||
ctxt386 := obj.Linknew(&Link386)
|
||||
ctxt386.Headtype = objabi.Hlinux // See #32028
|
||||
runTest(t, ctxt386, oclassTests386)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user