From 8a2c34e413bfbcb0ec9b01fd1dac3bc59d921256 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Mon, 28 Nov 2016 17:23:12 -0500 Subject: [PATCH] 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 --- src/os/executable_procfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.48.1