Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4006add7 authored by Christopher Ferris's avatar Christopher Ferris Committed by android-build-merger
Browse files

Merge "Don\'t fail if the new pss is less than stable."

am: 26cf3526

* commit '26cf3526':
  Don't fail if the new pss is less than stable.
parents 181f429f 26cf3526
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1412,9 +1412,9 @@ void CheckForLeak(pid_t pid, pid_t tid) {
  }
  size_t new_pss = GetPssBytes();
  ASSERT_TRUE(new_pss != 0);
  size_t abs_diff = (new_pss > stable_pss) ? new_pss - stable_pss : stable_pss - new_pss;
  // As long as the new pss is within a certain amount, consider everything okay.
  ASSERT_LE(abs_diff, MAX_LEAK_BYTES);
  if (new_pss > stable_pss) {
    ASSERT_LE(new_pss - stable_pss, MAX_LEAK_BYTES);
  }
}

TEST(libbacktrace, check_for_leak_local) {