diff options
author | Yabin Cui <yabinc@google.com> | 2016-12-14 17:43:26 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2017-02-15 11:44:40 -0800 |
commit | f560a6fdf092f0c03c0e7a92d62948d34318146a (patch) | |
tree | a22ca918c3b47945afd8d33ada7ca58329bf6069 /simpleperf/dso.cpp | |
parent | 264b69316cd385d887a2c7beb289eea5b0a9f05d (diff) | |
download | extras-f560a6fdf092f0c03c0e7a92d62948d34318146a.tar.gz |
simpleperf: build cts test running in app context.
When built for cts test, the test binary uses run-as to move itself
to the data directory of debuggable app 'com.android.simpleperf',
and run the tests in app context using run-as.
Bug: http://b/18790309
Test: run cts-tradefed, 'run everything -m CtsSimpleperfTestCase'.
Change-Id: I523470bb8062cb944b44dc6f264a8b1c14221b62
Diffstat (limited to 'simpleperf/dso.cpp')
-rw-r--r-- | simpleperf/dso.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/dso.cpp b/simpleperf/dso.cpp index 351d88ae..40603fe8 100644 --- a/simpleperf/dso.cpp +++ b/simpleperf/dso.cpp @@ -97,7 +97,7 @@ bool Dso::SetSymFsDir(const std::string& symfs_dir) { if (dirname.back() != '/') { dirname.push_back('/'); } - if (GetEntriesInDir(symfs_dir).empty()) { + if (!IsDir(symfs_dir)) { LOG(ERROR) << "Invalid symfs_dir '" << symfs_dir << "'"; return false; } |