]> Cypherpunks repositories - gostls13.git/commitdiff
debug/pe: skip TestReadCOFFSymbolAuxInfo on big-endian systems
authorThan McIntosh <thanm@google.com>
Thu, 31 Mar 2022 17:15:51 +0000 (13:15 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 31 Mar 2022 19:13:25 +0000 (19:13 +0000)
Disable the new TestReadCOFFSymbolAuxInfo testpoint on big endian
systems, pending resolution of issue 52079. The newly added interfaces
for reading symbol definition aux info is not working properly when
reading PE objects obj big-endian systems.

Updates #52079.

Change-Id: I8d55c7e4c03fc6444ef06a6a8154cb50596ca58a
Reviewed-on: https://go-review.googlesource.com/c/go/+/397294
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/debug/pe/symbols_test.go

index c4dcd95391f3413010704855acbec1e298866486..5ccf6358306bdf241dfac91cb0b7e1b739e2b423 100644 (file)
@@ -6,6 +6,7 @@ package pe
 
 import (
        "fmt"
+       "runtime"
        "testing"
 )
 
@@ -17,6 +18,13 @@ type testpoint struct {
 }
 
 func TestReadCOFFSymbolAuxInfo(t *testing.T) {
+
+       switch runtime.GOARCH {
+       case "mips", "mips64", "ppc64", "s390x":
+               t.Skipf("Skipping on %s (big endian) until issue #52079 fixed",
+                       runtime.GOARCH)
+       }
+
        testpoints := map[int]testpoint{
                39: testpoint{
                        name:   ".rdata$.refptr.__native_startup_lock",