meminfo: test: delete SmapsOrRollupReturn test
The test has become invalid due to addition of IsSmapsRollupSupported() and its internal usage by SmapsOrRollup() method. The method now returns success and returns statistics even if 'smaps_rollup' doesn't exist. It does that by internally checking for it's existence and falls back to using /proc/<pid>/smaps Bug: 111694435 Test: mma -j Change-Id: I1983a23f1f617aee126bc66a4c1fbd4abb50f565 Signed-off-by: Sandeep Patil <sspatil@google.com>
This commit is contained in:
parent
a0ca0191d6
commit
d03244ab89
1 changed files with 0 additions and 9 deletions
|
@ -293,15 +293,6 @@ TEST(TestProcMemInfo, IsSmapsSupportedTest) {
|
|||
EXPECT_EQ(supported, IsSmapsRollupSupported(-1));
|
||||
}
|
||||
|
||||
TEST(TestProcMemInfo, SmapsOrRollupReturn) {
|
||||
// if /proc/<pid>/smaps_rollup file exists, .SmapsRollup() must return true;
|
||||
// false otherwise
|
||||
std::string path = ::android::base::StringPrintf("/proc/%d/smaps_rollup", pid);
|
||||
ProcMemInfo proc_mem(pid);
|
||||
MemUsage stats;
|
||||
EXPECT_EQ(!access(path.c_str(), F_OK), proc_mem.SmapsOrRollup(&stats));
|
||||
}
|
||||
|
||||
TEST(TestProcMemInfo, SmapsOrRollupTest) {
|
||||
std::string rollup =
|
||||
R"rollup(12c00000-7fe859e000 ---p 00000000 00:00 0 [rollup]
|
||||
|
|
Loading…
Reference in a new issue