Loading core/tests/coretests/src/com/android/internal/os/DebugTest.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -64,4 +64,12 @@ public class DebugTest extends TestCase { public void testGetCallers() { public void testGetCallers() { assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS)); assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS)); } } /** * Regression test for b/31943543. Note: must be run under CheckJNI to detect the issue. */ public void testGetMemoryInfo() { Debug.MemoryInfo info = new Debug.MemoryInfo(); Debug.getMemoryInfo(-1, info); } } } Loading
core/tests/coretests/src/com/android/internal/os/DebugTest.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -64,4 +64,12 @@ public class DebugTest extends TestCase { public void testGetCallers() { public void testGetCallers() { assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS)); assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS)); } } /** * Regression test for b/31943543. Note: must be run under CheckJNI to detect the issue. */ public void testGetMemoryInfo() { Debug.MemoryInfo info = new Debug.MemoryInfo(); Debug.getMemoryInfo(-1, info); } } }