OSDN Git Service

Fix bionic-unit-tests in some non-standard builds
authorVictor Khimenko <khim@google.com>
Tue, 24 Jan 2017 21:12:07 +0000 (22:12 +0100)
committerVictor Khimenko <khim@google.com>
Tue, 24 Jan 2017 21:20:03 +0000 (22:20 +0100)
commit65273fb630cdf1268a49e6107bb7f55f3aaf6c15
treed442fc6d79209ba0bdcf1873bbc194be7e3f901d
parentd8388cd303ed734b5e703217f24e03f89b72b0c9
Fix bionic-unit-tests in some non-standard builds

The binary bionic-unit-tests is linked with some shared libraries
and these libraries are found in ${ORIGIN}/../bionic-loader-test-libs
directory specified by runpath.  This makes it higly unlikely that
anyone would be run these files when ${ORIGIN}/../bionic-loader-test-libs
does not include proper files.

Bug: http://b/34681268
Test: run bionic-unit-tests --gtest_filter=dl*:Dl*

Change-Id: I52fc31339fdfa232c0fdafa218eadaeaf5551a8d
tests/gtest_globals.cpp