]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testcshared: fix tests on android
authorElias Naur <elias.naur@gmail.com>
Sat, 19 Aug 2017 11:11:09 +0000 (13:11 +0200)
committerElias Naur <elias.naur@gmail.com>
Sat, 19 Aug 2017 12:55:05 +0000 (12:55 +0000)
commita9e0204c1e82724ac4c5878e36efe882d75b7978
tree060d648157e7606a1d4d239231586f20903da333
parenta6ffab6b6743a490151aadfd2f2a79244a84e03a
misc/cgo/testcshared: fix tests on android

The testcshared test.bash was rewritten in Go, but the rewritten script
broke on Android. Make the tests run on Android again by:

- Restoring the LD_LIBRARY_PATH path (.).
- Restoring the Android specific C flags (-pie -fuse-ld=gold).
- Adding runExe to run test executables. All other commands must run on
the host.

Fixes #21513.

Change-Id: I3ea617a943c686b15437cc5c118e9802a913d93a
Reviewed-on: https://go-review.googlesource.com/57290
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
misc/cgo/testcshared/cshared_test.go