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

Commit 56256ce7 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:...

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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a6ce9543dbdf7a19363c79d521baa4f487bd6e8
parents 02e214ca 136e5809
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
@@ -449,7 +449,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();