commit | 6f96376620b34b68c5896d25a315fc0f8b72ac80 | [log] [tgz] |
---|---|---|
author | vadimt <vadimt@google.com> | Tue Feb 25 11:05:39 2020 -0800 |
committer | vadimt <vadimt@google.com> | Tue Feb 25 11:05:39 2020 -0800 |
tree | ff1aa27f5c26fd7f9c6c34856006744373e259cc | |
parent | 436573401765cdc97d8cf672ace3ccbea16badeb [diff] |
Catching OOM exceptions in auto-investigator In the development environment, the device may stay for long time without reboot, and the logcat size may turn to be long enough to overflow the memory. Suppressing OOM exceptions. Change-Id: I562e2c03312e88f669d9cb660af6e8849dc0c8ef
diff --git a/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java b/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java index 5880eb6..8ab121e 100644 --- a/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java +++ b/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java
@@ -102,7 +102,7 @@ logSinceBoot = UiDevice.getInstance(getInstrumentation()) .executeShellCommand("logcat -d -t " + systemBootTime.replace(" ", "")); - } catch (IOException e) { + } catch (IOException | OutOfMemoryError e) { return 0; }