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

Commit 63645144 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Debug: Add test for bug 31943543

Bug: 31943543
Test: adb shell setprop debug.checkjni 1 && runtest --path frameworks/base/core/tests/coretests/src/com/android/internal/os/DebugTest.java
Change-Id: I895f3f9927ed3572dc4e77b49d12cadd53ce5d6a
parent 05d950ee
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -64,4 +64,12 @@ public class DebugTest extends TestCase {
    public void testGetCallers() {
        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);
    }
}