Merge "Debug: Add test for bug 31943543" am: 7c4efe421c

am: afe73c0c3c

Change-Id: Ia72dda69495f732e2a4a8abcee679a3c6beabab4
This commit is contained in:
Andreas Gampe
2016-10-07 00:51:45 +00:00
committed by android-build-merger

View File

@@ -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);
}
}