aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2018-11-02 10:09:30 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2018-11-02 16:12:08 +0000
commit85525c56ab5fdb214fee70b4b4cce8700344258b (patch)
tree03269d4c3ada020b50f570b445913dd4390bb350 /src
parent3a0d6091d64f0204d0942764d3356ac0572be0e3 (diff)
downloadgo-85525c56ab5fdb214fee70b4b4cce8700344258b.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/internal/obj/x86/issue19518_test.go10
-rw-r--r--src/cmd/internal/obj/x86/obj6_test.go8
-rw-r--r--src/debug/elf/file_test.go2
-rw-r--r--src/runtime/crash_test.go3
-rw-r--r--src/runtime/pprof/pprof_test.go2
-rw-r--r--src/runtime/runtime-gdb_test.go2
6 files changed, 10 insertions, 17 deletions
diff --git a/src/cmd/internal/obj/x86/issue19518_test.go b/src/cmd/internal/obj/x86/issue19518_test.go
index 2fe227ee3f..fa2beb8aad 100644
--- a/src/cmd/internal/obj/x86/issue19518_test.go
+++ b/src/cmd/internal/obj/x86/issue19518_test.go
@@ -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)
diff --git a/src/cmd/internal/obj/x86/obj6_test.go b/src/cmd/internal/obj/x86/obj6_test.go
index 2f6296ce8b..c5399744f2 100644
--- a/src/cmd/internal/obj/x86/obj6_test.go
+++ b/src/cmd/internal/obj/x86/obj6_test.go
@@ -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)
diff --git a/src/debug/elf/file_test.go b/src/debug/elf/file_test.go
index 11d8992b71..d7c1e9f800 100644
--- a/src/debug/elf/file_test.go
+++ b/src/debug/elf/file_test.go
@@ -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
diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go
index 6835cacb3f..6fba4dd91a 100644
--- a/src/runtime/crash_test.go
+++ b/src/runtime/crash_test.go
@@ -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)
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go
index 593924183f..a1089c8fdf 100644
--- a/src/runtime/pprof/pprof_test.go
+++ b/src/runtime/pprof/pprof_test.go
@@ -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
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index 7672e45b03..5d35813708 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -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")