From: Ian Lance Taylor Date: Wed, 22 Nov 2017 23:14:33 +0000 (-0800) Subject: os/signal: don't run TestTerminalSignal on Android X-Git-Tag: go1.10beta1~154 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=571ee0436f388a5304a08a3f029113306bfd54d5;p=gostls13.git os/signal: don't run TestTerminalSignal on Android At least some versions of the Android libc do not define posix_openpt. Updates #22845 Change-Id: Id21705f47ef0f9694313a7dc7351a952d48d407b Reviewed-on: https://go-review.googlesource.com/79399 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/os/signal/internal/pty/pty.go b/src/os/signal/internal/pty/pty.go index c59185adb5..fe293a0126 100644 --- a/src/os/signal/internal/pty/pty.go +++ b/src/os/signal/internal/pty/pty.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 darwin dragonfly freebsd linux netbsd openbsd +// +build darwin dragonfly freebsd linux,!android netbsd openbsd // +build cgo // Package pty is a simple pseudo-terminal package for Unix systems, diff --git a/src/os/signal/signal_cgo_test.go b/src/os/signal/signal_cgo_test.go index d23aa18e5f..27707fadce 100644 --- a/src/os/signal/signal_cgo_test.go +++ b/src/os/signal/signal_cgo_test.go @@ -2,10 +2,12 @@ // 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 +// +build darwin dragonfly freebsd linux,!android netbsd openbsd // +build cgo // Note that this test does not work on Solaris: issue #22849. +// Don't run the test on Android because at least some versions of the +// C library do not define the posix_openpt function. package signal_test