]> Cypherpunks repositories - gostls13.git/commitdiff
os: Executable can use /proc/self/exe on android
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 28 Nov 2016 22:23:12 +0000 (17:23 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Tue, 29 Nov 2016 00:24:22 +0000 (00:24 +0000)
Fixes the os test on the Android builder.

Change-Id: Ibb9db712156a620fcccf515e035475c5e2f535a5
Reviewed-on: https://go-review.googlesource.com/33650
Run-TryBot: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/os/executable_procfs.go

index a6c8f45189a4c08cdf6b2376701af1e949120e2c..69a70e18df030fe176a3605c64927aa112836fc0 100644 (file)
@@ -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"