Fix flakiness of testNativeCrash

TestNativeCrash is not always able to get the tombstone of the crashed native app. This is because the tombstone
timestamp can be more than 5000ms before the ApplicationExitInfo, causing them to not match.

This patch increases timestamp difference to ensure that the tombstone always matches in Low-end smartphone.

Bug: 260043829
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I7d6094bc791430a930c1904eab03096aae4b8822
This commit is contained in:
Yukun Yang
2022-11-22 13:59:09 +08:00
committed by Lin Lili
parent 1291b83a2f
commit cb82bf8705

View File

@@ -363,7 +363,7 @@ public final class NativeTombstoneManager {
return false;
}
if (Math.abs(exitInfo.getTimestamp() - mTimestampMs) > 5000) {
if (Math.abs(exitInfo.getTimestamp() - mTimestampMs) > 10000) {
return false;
}