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

Commit 136e5809 authored by Brad Ebinger's avatar Brad Ebinger Committed by Automerger Merge Worker
Browse files

Merge "Do not crash on ENG builds when we hit a WTF during test" am: e75b8d64 am: 796fa1c2

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1625161

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3f64531ea3913c421929b55ae072f5555f747572
parents 3df067b7 796fa1c2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@
    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
        <option name="package" value="com.android.frameworks.telephonytests" />
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="exclude-annotation" value="androidx.test.filters.FlakyTest" />
        <option name="exclude-annotation" value="org.junit.Ignore" />
        <option name="hidden-api-checks" value="false"/>
    </test>
</configuration>
+3 −1
Original line number Diff line number Diff line
@@ -443,7 +443,9 @@ public abstract class TelephonyTest {
        MockitoAnnotations.initMocks(this);
        TelephonyManager.disableServiceHandleCaching();
        SubscriptionController.disableCaching();

        // For testing do not allow Log.WTF as it can cause test process to crash
        Log.setWtfHandler((tagString, what, system) -> logd("WTF captured, ignoring. Tag: "
                + tagString + ", exception: " + what));

        mPhones = new Phone[] {mPhone};
        mImsCallProfile = new ImsCallProfile();