diff options
author | Yabin Cui <yabinc@google.com> | 2018-01-08 11:48:12 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2018-01-09 16:05:24 -0800 |
commit | f1462a0ec8ab97d26682cb64d9bff9d0b8de69ae (patch) | |
tree | 5270a5fb8a445f4abc73e6b070ff5956307d17ab | |
parent | 9784ce307fd2497c7878e01e35c5fede67e8a88e (diff) | |
download | extras-f1462a0ec8ab97d26682cb64d9bff9d0b8de69ae.tar.gz |
simpleperf: fix test for vdso file.
The kernel may export vdso file with no symbols.
Bug: http://b/69073856
Test: run simpleperf_unit_test.
Change-Id: I5c59513debe014ffd7fd772be110044eefcbb37f
(cherry picked from commit 47ba6564c954af76f3f40899d694d90b580f6038)
-rw-r--r-- | simpleperf/environment_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/simpleperf/environment_test.cpp b/simpleperf/environment_test.cpp index 48914674..776f01fe 100644 --- a/simpleperf/environment_test.cpp +++ b/simpleperf/environment_test.cpp @@ -39,6 +39,5 @@ TEST(environment, PrepareVdsoFile) { std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, "[vdso]", sizeof(size_t) == sizeof(uint64_t)); ASSERT_TRUE(dso != nullptr); - const std::vector<Symbol>& symbols = dso->GetSymbols(); - ASSERT_FALSE(symbols.empty()); + ASSERT_NE(dso->GetDebugFilePath(), "[vdso]"); } |