From 538b4bab3dd9e34b3d30b6aeaef8db1d34275274 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Mon, 11 Sep 2017 17:19:24 +1000 Subject: [PATCH] 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 Reviewed-by: Elias Naur --- misc/cgo/testcshared/cshared_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/cgo/testcshared/cshared_test.go b/misc/cgo/testcshared/cshared_test.go index b25e4a9825..db8b5082fc 100644 --- a/misc/cgo/testcshared/cshared_test.go +++ b/misc/cgo/testcshared/cshared_test.go @@ -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) -- 2.50.0