Ignore PrivateVolumeForgetTest#test_invalidSetupDoesNotCrashSettings

It failed with Resources$NotFoundException and it blocks
WindowManager extensions CTS tests, so ignore it at first.

Bug: 216630912
Test: atest com.android.settings.deviceinfo.PrivateVolumeForgetTest
Change-Id: Iec270535a73bcca5879d2792c181d853b4af7250
This commit is contained in:
Arc Wang
2022-03-22 10:22:36 +08:00
parent 27c2e0db82
commit 61a733ad0f

View File

@@ -28,6 +28,7 @@ import androidx.test.runner.AndroidJUnit4;
import com.android.settings.Settings; import com.android.settings.Settings;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -40,6 +41,7 @@ public class PrivateVolumeForgetTest {
new ActivityTestRule<>(Settings.PrivateVolumeForgetActivity.class, true, true); new ActivityTestRule<>(Settings.PrivateVolumeForgetActivity.class, true, true);
@Test @Test
@Ignore
public void test_invalidSetupDoesNotCrashSettings() { public void test_invalidSetupDoesNotCrashSettings() {
Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
Intent intent = new Intent(targetContext, Settings.PrivateVolumeForgetActivity.class); Intent intent = new Intent(targetContext, Settings.PrivateVolumeForgetActivity.class);