]> Cypherpunks repositories - gostls13.git/commit
runtime: fix nbpipe_test for AIX
authorClément Chigot <chigot.c@gmail.com>
Tue, 29 Oct 2019 14:39:42 +0000 (15:39 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 30 Oct 2019 14:51:03 +0000 (14:51 +0000)
commitcc4b824e53ef52e1572808c7b7f9b8507516c816
tree219e60336bba926405c734552456484c73469037
parent301bc66a478198f0edfb5526d84f1d0c8a3d5c05
runtime: fix nbpipe_test for AIX

Fcntl can't be called using syscall.Syscall as it doesn't work on AIX.
Moreover, fcntl isn't exported by syscall package.

However, it can be accessed by exporting it from runtime package
using export_aix_test.go.

Change-Id: Ib6af66d9d7eacb9ca0525ebc4cd4c92951735f1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/204059
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/export_aix_test.go [new file with mode: 0644]
src/runtime/nbpipe_fcntl_aix_test.go [new file with mode: 0644]
src/runtime/nbpipe_fcntl_unix_test.go [new file with mode: 0644]
src/runtime/nbpipe_test.go