]> Cypherpunks repositories - gostls13.git/commitdiff
os/signal: don't run TestTerminalSignal on Android
authorIan Lance Taylor <iant@golang.org>
Wed, 22 Nov 2017 23:14:33 +0000 (15:14 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 23 Nov 2017 00:34:48 +0000 (00:34 +0000)
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 <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/signal/internal/pty/pty.go
src/os/signal/signal_cgo_test.go

index c59185adb57453af24f36751f55fb1c55b2e5bbe..fe293a0126f8d89b6bb786a7701a71b4e1099dd7 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
+// +build darwin dragonfly freebsd linux,!android netbsd openbsd
 // +build cgo
 
 // Package pty is a simple pseudo-terminal package for Unix systems,
index d23aa18e5f2ea25a089a7253d5bf2eb5fb2018c9..27707fadcee4b60ff8ea8a658011163af7e3812e 100644 (file)
@@ -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