History log of /libcore/luni/src/test/java/libcore/java/lang/OldRuntimeTest.java
Revision Date Author Comments
4ed2574e11ac31a61a7a8dbf1bdf6f26b4203a62 09-Aug-2016 Przemyslaw Szczepaniak <pszczepaniak@google.com> Fix OldRuntime#test_traceMethodCalls

Runtime.getRuntime().traceMethodCalls(boolean) with "True"
argument is deprecated and unsupported (throws UnsupportedOperationException)
since Android Lollipop (API level 21).

Test: libcore.java.lang.OldRuntime.test_traceMethodCalls on both host and device
Bug: 3447964
Change-Id: I159b2e1a66fb28e1deeaf99683611fe2267b1803
895e37b768ced42a813e64e868314aca83fb53ad 26-Jul-2016 Przemyslaw Szczepaniak <pszczepaniak@google.com> Disable Runtime#load/loadLibrary(String,ClassLoader) in >N

Runtime#load/loadLibrary are private and deprecated methods.
Still, many apps use reflection to use them. If app is
targeting API level > 24, both methods will throw
a RuntimeException.

This is a second attempt, with a working tests.

Bug: 25859957
Change-Id: I9808831493f297f3551884ec8f1e6a079476a803
Test: libcore.java.lang.OldRuntimeTest
(cherry picked from commit 8e99fd200798d3d115745bacfb853209af3501cd and 6ee825e4decc602f3e6ca6e5b084382fc6f60bb5)
6ee825e4decc602f3e6ca6e5b084382fc6f60bb5 27-Jul-2016 Przemyslaw Szczepaniak <pszczepaniak@google.com> Fix OldRuntimeTest#test_load(library)?Deprecated

Test was checking for a wrong exception type,
should be UnsupportedOperationException not
IllegalStateException.

Also addresses formatting and visibility nits from
post-merge comments.

Change-Id: Ic9834501fbc741d2677041c0e434d559cda76101
Test: libcore.java.lang.OldRuntimeTest
Bug: 25859957
4b91335454a02b51e4e61e351f722015a3f970ce 27-Jul-2016 Hiroshi Yamauchi <yamauchi@google.com> Revert "Disable private Runtime#load/loadLibrary(String,ClassLoader) in >N"

This reverts commit 67f656a5782ab12221516738e5c83043798e8588.

Tests failing.

Change-Id: If8fbc1894b0f2db05e3e42f5a60b5f226fcb95f0
67f656a5782ab12221516738e5c83043798e8588 26-Jul-2016 Przemyslaw Szczepaniak <pszczepaniak@google.com> Disable private Runtime#load/loadLibrary(String,ClassLoader) in >N

Runtime#load/loadLibrary are private and deprecated methods.
Still, many apps use reflection to use them. If app is
targeting API level > 24, both methods will throw
a RuntimeException.

Bug: 25859957
Change-Id: I3e79d4f79fa560247057045ace1e3cb158cc6cfe
(cherry picked from commit 8e99fd200798d3d115745bacfb853209af3501cd)
8e99fd200798d3d115745bacfb853209af3501cd 12-Jul-2016 Przemyslaw Szczepaniak <pszczepaniak@google.com> Disable private Runtime#load/loadLibrary(String,ClassLoader) in >N

Runtime#load/loadLibrary are private and deprecated methods.
Still, many apps use reflection to use them. If app is
targeting API level > 24, both methods will throw
a RuntimeException.

Bug: 25859957
Change-Id: I3e79d4f79fa560247057045ace1e3cb158cc6cfe
f54d81e0e2d97798b928ba32f5edab5519622f28 10-Jun-2014 Neil Fuller <nfuller@google.com> Tests for Runtime.*Memory()

The docs describe a condition we do not test for.
The freeMemory / totalMemory tests have been consolidated
into a single test and joined by an additional assertion for
maxMemory().

The test for freeMemory from OldRuntimeTest has been tidied
up and moved to RuntimeTest.

Bug: 15507122
Change-Id: I4343215fb7f6b441613e25d3844d67812f5b5e94
001630e375421f078a2b1f45b03a10c9f6b7bd1f 03-Jan-2012 Jesse Wilson <jessewilson@google.com> Remove run-core-tests from known failures.

The @KnownFailure annotations are unnecessary and the
expectations are all obsolete.

Bug: http://b/3087671
Change-Id: I5dd834323770da09090b4e76c3f6793f1ccc629d
8bc50e8d16e9d630ce236b7ea076f72f9dac0d69 02-Dec-2010 Jesse Wilson <jessewilson@google.com> Deduplicate java.lang tests from Harmony.

This removes all tests duplicated in Harmony's test suite, and
moves the rest into the libcore.java.lang package.

Change-Id: Ic2fe12cc1e10513abb721d98e7b9b3a2e00192f5
http://b/3246523