From: David Crawshaw Date: Mon, 28 Nov 2016 22:23:12 +0000 (-0500) Subject: os: Executable can use /proc/self/exe on android X-Git-Tag: go1.8beta1~45 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8a2c34e413bfbcb0ec9b01fd1dac3bc59d921256;p=gostls13.git os: Executable can use /proc/self/exe on android Fixes the os test on the Android builder. Change-Id: Ibb9db712156a620fcccf515e035475c5e2f535a5 Reviewed-on: https://go-review.googlesource.com/33650 Run-TryBot: David Crawshaw Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/os/executable_procfs.go b/src/os/executable_procfs.go index a6c8f45189..69a70e18df 100644 --- a/src/os/executable_procfs.go +++ b/src/os/executable_procfs.go @@ -19,7 +19,7 @@ var executablePath, executablePathErr = func() (string, error) { switch runtime.GOOS { default: return "", errors.New("Executable not implemented for " + runtime.GOOS) - case "linux": + case "linux", "android": procfn = "/proc/self/exe" case "netbsd": procfn = "/proc/curproc/exe"