OSDN Git Service

Fix bionic-unit-tests in arch with binary translator
authorVictor Khimenko <khim@google.com>
Wed, 25 Jan 2017 18:59:16 +0000 (19:59 +0100)
committerVictor Khimenko <khim@google.com>
Wed, 25 Jan 2017 19:57:48 +0000 (20:57 +0100)
commit14b9d7199c1b147ef6ce6e522ff14413930d2127
tree3a03404800caf92653df79769628d373c5949ead
parent18c009ca96a432b35c76aeb9f62687b2db5153c0
Fix bionic-unit-tests in arch with binary translator

If binary translator is involved then libc is not place in /system/lib
or /system/lib64.  It's placed into /syste/lib/arm, /system/lib/arm64,
etc.  FUGU is an example of such an architecture.

Support both cases by picking right path at runtime.

Test: run bionic-unit-tests --gtest_filter=dlfcn.dladdr_libc
Change-Id: I8345c0f6c19376ebe5106f9670fd2addeb9b9080
tests/dlfcn_test.cpp