aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-03-26 00:39:45 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-03-26 00:39:45 +0000
commitd94a1e7fe932238f9073bcbfb2821a264d9f6ac6 (patch)
treed7be665993dd21c575d2c963f18e286386e5b84b /libgo/go
parentd9c14be954c293144ed76e907cdc4f86b57974ef (diff)
downloadgcc-d94a1e7fe932238f9073bcbfb2821a264d9f6ac6.zip
gcc-d94a1e7fe932238f9073bcbfb2821a264d9f6ac6.tar.gz
gcc-d94a1e7fe932238f9073bcbfb2821a264d9f6ac6.tar.bz2
libgo: Fix go/runtime test failure on S390.
The tests run out of memory on 31-bit S390 systems because it does not have split stacks. From-SVN: r221681
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/runtime/chan_test.go5
-rw-r--r--libgo/go/runtime/map_test.go7
2 files changed, 11 insertions, 1 deletions
diff --git a/libgo/go/runtime/chan_test.go b/libgo/go/runtime/chan_test.go
index e689cea..4fb305c 100644
--- a/libgo/go/runtime/chan_test.go
+++ b/libgo/go/runtime/chan_test.go
@@ -202,6 +202,11 @@ func TestNonblockRecvRace(t *testing.T) {
n := 10000
if testing.Short() {
n = 100
+ } else {
+ if runtime.GOARCH == "s390" {
+ // Test uses too much address space on 31-bit S390.
+ t.Skip("skipping long test on s390")
+ }
}
for i := 0; i < n; i++ {
c := make(chan int, 1)
diff --git a/libgo/go/runtime/map_test.go b/libgo/go/runtime/map_test.go
index 7e4da90..9ed183b 100644
--- a/libgo/go/runtime/map_test.go
+++ b/libgo/go/runtime/map_test.go
@@ -243,7 +243,12 @@ func TestIterGrowWithGC(t *testing.T) {
func testConcurrentReadsAfterGrowth(t *testing.T, useReflect bool) {
if runtime.GOMAXPROCS(-1) == 1 {
- defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(16))
+ if runtime.GOARCH == "s390" {
+ // Test uses too much address space on 31-bit S390.
+ defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(8))
+ } else {
+ defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(16))
+ }
}
numLoop := 10
numGrowStep := 250