From 09ed8f6cfc3662d62d84fc65288408917906fa11 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Thu, 16 Feb 2017 00:55:42 +0100 Subject: [PATCH] SystemUI: Disable LeakReporterTest Those tests are slow because they dump the heap multiple times. Disable until the code is refactored such that it does not actually dump and write to disk when under test. Test: runtest systemui Bug: 35398375 Change-Id: I7cf945687900424dc1460367fbef5f36ed75da82 --- .../src/com/android/systemui/util/leak/LeakReporterTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/SystemUI/tests/src/com/android/systemui/util/leak/LeakReporterTest.java b/packages/SystemUI/tests/src/com/android/systemui/util/leak/LeakReporterTest.java index 96a9bee9584e6..11948498e7606 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/util/leak/LeakReporterTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/util/leak/LeakReporterTest.java @@ -30,6 +30,7 @@ import com.android.systemui.SysuiTestCase; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; @@ -71,18 +72,21 @@ public class LeakReporterTest extends SysuiTestCase { mLeakDir.delete(); } + @Ignore("slow") @Test public void testDump_postsNotification() { mLeakReporter.dumpLeak(5); verify(mNotificationManager).notify(any(), anyInt(), any()); } + @Ignore("slow") @Test public void testDump_Repeated() { mLeakReporter.dumpLeak(1); mLeakReporter.dumpLeak(2); } + @Ignore("slow") @Test public void testDump_ProducesNonZeroFiles() { mLeakReporter.dumpLeak(5);