Commit 538b4bab authored by Alex Brainman's avatar Alex Brainman

misc/cgo/testcshared: actually run test executable on android

CL 62593 broken TestExportedSymbols and TestUnexportedSymbols
because it started executing android test binary on host.
Make them run on android.

Hopefully fixes android build.

Change-Id: Ic0bb9f0cbbefca23828574282caa33a03ef72431
Reviewed-on: https://go-review.googlesource.com/62830
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarElias Naur <elias.naur@gmail.com>
parent e9163928
......@@ -285,7 +285,7 @@ func TestExportedSymbols(t *testing.T) {
defer os.Remove(cmd)
out := run(t, append(gopathEnv, "LD_LIBRARY_PATH=."), cmdToRun(cmd))
out := runExe(t, append(gopathEnv, "LD_LIBRARY_PATH=."), cmdToRun(cmd))
if strings.TrimSpace(out) != "PASS" {
t.Error(out)
}
......@@ -337,7 +337,7 @@ func TestUnexportedSymbols(t *testing.T) {
defer os.Remove(libname)
defer os.Remove(cmd)
out := run(t, append(gopathEnv, "LD_LIBRARY_PATH=."), cmdToRun(cmd))
out := runExe(t, append(gopathEnv, "LD_LIBRARY_PATH=."), cmdToRun(cmd))
if strings.TrimSpace(out) != "PASS" {
t.Error(out)
......
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