mirror of
https://github.com/golang/go.git
synced 2024-09-21 18:38:37 +00:00
all: skip unsupported tests on AIX
This commit skips tests which aren't yet supported on AIX. nosplit.go is disabled because stackGuardMultiplier is increased for syscalls. Change-Id: Ib5ff9a4539c7646bcb6caee159f105ff8a160ad7 Reviewed-on: https://go-review.googlesource.com/c/146939 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
3a0d6091d6
commit
85525c56ab
@ -11,7 +11,6 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@ -68,13 +67,8 @@ func objdumpOutput(t *testing.T) []byte {
|
||||
testenv.GoToolPath(t), "build", "-o",
|
||||
filepath.Join(tmpdir, "output"))
|
||||
|
||||
var env []string
|
||||
for _, v := range os.Environ() {
|
||||
if !strings.HasPrefix(v, "GOARCH=") {
|
||||
env = append(env, v)
|
||||
}
|
||||
}
|
||||
cmd.Env = append(env, "GOARCH=amd64")
|
||||
cmd.Env = append(os.Environ(), "GOARCH=amd64", "GOOS=linux")
|
||||
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
t.Fatalf("error %s output %s", err, out)
|
||||
|
@ -99,13 +99,7 @@ func asmOutput(t *testing.T, s string) []byte {
|
||||
testenv.GoToolPath(t), "tool", "asm", "-S", "-dynlink",
|
||||
"-o", filepath.Join(tmpdir, "output.6"), tmpfile.Name())
|
||||
|
||||
var env []string
|
||||
for _, v := range os.Environ() {
|
||||
if !strings.HasPrefix(v, "GOARCH=") {
|
||||
env = append(env, v)
|
||||
}
|
||||
}
|
||||
cmd.Env = append(env, "GOARCH=amd64")
|
||||
cmd.Env = append(os.Environ(), "GOARCH=amd64", "GOOS=linux")
|
||||
asmout, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
t.Fatalf("error %s output %s", err, asmout)
|
||||
|
@ -784,7 +784,7 @@ func TestCompressedSection(t *testing.T) {
|
||||
func TestNoSectionOverlaps(t *testing.T) {
|
||||
// Ensure cmd/link outputs sections without overlaps.
|
||||
switch runtime.GOOS {
|
||||
case "android", "darwin", "js", "nacl", "plan9", "windows":
|
||||
case "aix", "android", "darwin", "js", "nacl", "plan9", "windows":
|
||||
t.Skipf("cmd/link doesn't produce ELF binaries on %s", runtime.GOOS)
|
||||
}
|
||||
_ = net.ResolveIPAddr // force dynamic linkage
|
||||
|
@ -623,6 +623,9 @@ func TestBadTraceback(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTimePprof(t *testing.T) {
|
||||
if runtime.GOOS == "aix" {
|
||||
t.Skip("pprof not yet available on AIX (see golang.org/issue/28555)")
|
||||
}
|
||||
fn := runTestProg(t, "testprog", "TimeProf")
|
||||
fn = strings.TrimSpace(fn)
|
||||
defer os.Remove(fn)
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !nacl,!js
|
||||
// +build !aix,!nacl,!js
|
||||
|
||||
package pprof
|
||||
|
||||
|
@ -36,6 +36,8 @@ func checkGdbEnvironment(t *testing.T) {
|
||||
if runtime.GOARCH == "mips" {
|
||||
t.Skip("skipping gdb tests on linux/mips; see https://golang.org/issue/25939")
|
||||
}
|
||||
case "aix":
|
||||
t.Skip("gdb does not work on AIX; see golang.org/issue/28558")
|
||||
}
|
||||
if final := os.Getenv("GOROOT_FINAL"); final != "" && runtime.GOROOT() != final {
|
||||
t.Skip("gdb test can fail with GOROOT_FINAL pending")
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !nacl,!js,!gcflags_noopt
|
||||
// +build !nacl,!js,!aix,!gcflags_noopt
|
||||
// run
|
||||
|
||||
// Copyright 2014 The Go Authors. All rights reserved.
|
||||
|
Loading…
Reference in New Issue
Block a user