misc/cgo/test: make cgo tests run on AIX
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 18 Aug 2017 14:05:52 +0000 (14:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 18 Aug 2017 14:05:52 +0000 (14:05 +0000)
    Reviewed-on: https://go-review.googlesource.com/56910

From-SVN: r251182

gcc/go/gofrontend/MERGE
libgo/misc/cgo/test/cthread_unix.c
libgo/misc/cgo/test/issue18146.go

index f23457d07c67fd4a2255be0c79eda766a7a26a1f..612a1b4894c484675999f7fdf2810040dd08d2f4 100644 (file)
@@ -1,4 +1,4 @@
-9ff49c64ea6dbb5e08d1fa859b99b06049413279
+28e49825162465172ed706283628bf5cc1996260
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 6323e4980e85bcb4f1433c46fcf6ea79fa19382e..247d636d06dc5d45e9c3c0986f499df1ab56b1af 100644 (file)
@@ -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"
index 3c600463f0335447f8a36c44fb20f607519f2b64..a58aa1bb0f8470def7d82dfe40bc9229ecba3e01 100644 (file)
@@ -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