aboutsummaryrefslogtreecommitdiff
path: root/libgo/misc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-08-18 14:05:52 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-08-18 14:05:52 +0000
commit419d55e8df26ba17ee7514fa40669490d387d2c4 (patch)
treede699571190e476fce5779566e7815a1a6dab88d /libgo/misc
parent3e7b80d7710516e69d5d6430ce901e33a61bfef3 (diff)
downloadgcc-419d55e8df26ba17ee7514fa40669490d387d2c4.zip
gcc-419d55e8df26ba17ee7514fa40669490d387d2c4.tar.gz
gcc-419d55e8df26ba17ee7514fa40669490d387d2c4.tar.bz2
misc/cgo/test: make cgo tests run on AIX
Reviewed-on: https://go-review.googlesource.com/56910 From-SVN: r251182
Diffstat (limited to 'libgo/misc')
-rw-r--r--libgo/misc/cgo/test/cthread_unix.c2
-rw-r--r--libgo/misc/cgo/test/issue18146.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/libgo/misc/cgo/test/cthread_unix.c b/libgo/misc/cgo/test/cthread_unix.c
index 6323e49..247d636 100644
--- a/libgo/misc/cgo/test/cthread_unix.c
+++ b/libgo/misc/cgo/test/cthread_unix.c
@@ -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 darwin dragonfly freebsd linux netbsd openbsd solaris
+// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
#include <pthread.h>
#include "_cgo_export.h"
diff --git a/libgo/misc/cgo/test/issue18146.go b/libgo/misc/cgo/test/issue18146.go
index 3c60046..a58aa1b 100644
--- a/libgo/misc/cgo/test/issue18146.go
+++ b/libgo/misc/cgo/test/issue18146.go
@@ -50,6 +50,8 @@ func test18146(t *testing.T) {
nproc = 6
case "darwin", "dragonfly", "freebsd", "netbsd", "openbsd":
nproc = 7
+ case "aix":
+ nproc = 9
}
if setNproc {
var rlim syscall.Rlimit