Commit 32696832 authored by Mikio Hara's avatar Mikio Hara

os: skip TestStartProcess and TestHostname on android

Updates #11268.

Change-Id: Ib0cabd1c1806e884df9e40f6a9a1cdecf2f76823
Reviewed-on: https://go-review.googlesource.com/11223Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
parent 82020f86
...@@ -799,11 +799,14 @@ func TestStartProcess(t *testing.T) { ...@@ -799,11 +799,14 @@ func TestStartProcess(t *testing.T) {
var dir, cmd string var dir, cmd string
var args []string var args []string
if runtime.GOOS == "windows" { switch runtime.GOOS {
case "android":
t.Skip("android doesn't have /bin/pwd")
case "windows":
cmd = Getenv("COMSPEC") cmd = Getenv("COMSPEC")
dir = Getenv("SystemRoot") dir = Getenv("SystemRoot")
args = []string{"/c", "cd"} args = []string{"/c", "cd"}
} else { default:
cmd = "/bin/pwd" cmd = "/bin/pwd"
dir = "/" dir = "/"
args = []string{} args = []string{}
...@@ -1252,8 +1255,8 @@ func TestHostname(t *testing.T) { ...@@ -1252,8 +1255,8 @@ func TestHostname(t *testing.T) {
// There is no other way to fetch hostname on windows, but via winapi. // There is no other way to fetch hostname on windows, but via winapi.
// On Plan 9 it can be taken from #c/sysname as Hostname() does. // On Plan 9 it can be taken from #c/sysname as Hostname() does.
switch runtime.GOOS { switch runtime.GOOS {
case "plan9": case "android", "plan9":
t.Skipf("skipping on %s", runtime.GOOS) t.Skipf("%s doesn't have /bin/hostname", runtime.GOOS)
case "windows": case "windows":
testWindowsHostname(t) testWindowsHostname(t)
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment