summaryrefslogtreecommitdiff
path: root/ojluni/src/test/java
Commit message (Collapse)AuthorAgeFilesLines
* Improve test coverage for java.lang.StrictMathNikita Iashchenko2021-06-042-0/+475
| | | | | | | | | | | | | | | | | | | | | | | | | Added test coverage for public API methdos: * multiplyExact(long, int) Imported jdk/jdk11/test/jdk/java/lang/StrictMath/ExactArithTests.java Upstream commit: 51151:1ddf9a99e4ad * multiplyHigh(long, long) Imported from jdk/jdk11/test/jdk/java/lang/Math/MultiplicationTests.java Note that test is imported from Math, not StrictMath as APIs are the same but StrictMath test suite is missing MultiplicationTests.java. Upstream commit: 51151:1ddf9a99e4ad * multiplyFull(int, int) Added as regular test in luni/ as upstream has not coverage for this method at all. Bug: 183239578 Bug: 182167025 Test: atest CtsLibcoreOjTestCases:test.java.lang.StrictMath.ExactArithTests \ CtsLibcoreOjTestCases:test.java.lang.StrictMath.MultiplicationTests \ CtsLibcoreTestCases:libcore.java.lang.StrictMathTest Change-Id: I12e94dc3a51ce49797983e1340c46d02babccc91 Merged-In: Idd03cde1c22861a040981ae8ce35afb66e1cf437 (cherry picked from commit ecebe98368f26ab08daadd297179fc6ee54af23c)
* Adding unit tests for AbstractQueuedSynchronizerSorin Basca2021-05-102-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Adding tests to cover the following APIs: java.util.concurrent.locks.AbstractQueuedLongSynchronizer.hasQueuedPredecessors() java.util.concurrent.locks.AbstractQueuedLongSynchronizer.isHeldExclusively() java.util.concurrent.locks.AbstractQueuedLongSynchronizer.tryAcquire(long) java.util.concurrent.locks.AbstractQueuedLongSynchronizer.tryAcquireShared(long) java.util.concurrent.locks.AbstractQueuedLongSynchronizer.tryRelease(long) java.util.concurrent.locks.AbstractQueuedLongSynchronizer.tryReleaseShared(long) java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject.AbstractQueuedLongSynchronizer.ConditionObject() java.util.concurrent.locks.AbstractQueuedSynchronizer.hasQueuedPredecessors() java.util.concurrent.locks.AbstractQueuedSynchronizer.isHeldExclusively() java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquire(int) java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireShared(int) java.util.concurrent.locks.AbstractQueuedSynchronizer.tryRelease(int) java.util.concurrent.locks.AbstractQueuedSynchronizer.tryReleaseShared(int) java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject.AbstractQueuedSynchronizer.ConditionObject() Bug: 182165523 Test: atest AbstractQueuedLongSynchronizerTest Test: atest AbstractQueuedSynchronizerTest Change-Id: Ie3d68c294ed56f61479db089a6d1cef504c9b88c
* Revert "Adding unit tests for ConcurrentHashMap"Sorin Basca2021-04-261-185/+1
| | | | | | | | | | | | | Revert submission 1660319-java-util-concurrent-unit-tests-1 Reason for revert: Removing unit tests which cause too much divergence from upstream Reverted Changes: Idc905cc6b:Adding unit tests for exception classes I700188e1d:Adding unit tests for ConcurrentSkipListSet Ifa55996c2:Adding unit tests for ConcurrentSkipListMap Ic2a58cae5:Adding unit tests for ConcurrentHashMap Change-Id: I76f2b11dc2574e6230fe74bc41563527a97660d4
* Revert "Adding unit tests for ConcurrentSkipListMap"Sorin Basca2021-04-261-49/+4
| | | | | | | | | | | | | Revert submission 1660319-java-util-concurrent-unit-tests-1 Reason for revert: Removing unit tests which cause too much divergence from upstream Reverted Changes: Idc905cc6b:Adding unit tests for exception classes I700188e1d:Adding unit tests for ConcurrentSkipListSet Ifa55996c2:Adding unit tests for ConcurrentSkipListMap Ic2a58cae5:Adding unit tests for ConcurrentHashMap Change-Id: I1096e46ef08418f11f5c72645edf086bd3e44939
* Revert "Adding unit tests for ConcurrentSkipListSet"Sorin Basca2021-04-261-71/+2
| | | | | | | | | | | | | Revert submission 1660319-java-util-concurrent-unit-tests-1 Reason for revert: Removing unit tests which cause too much divergence from upstream Reverted Changes: Idc905cc6b:Adding unit tests for exception classes I700188e1d:Adding unit tests for ConcurrentSkipListSet Ifa55996c2:Adding unit tests for ConcurrentSkipListMap Ic2a58cae5:Adding unit tests for ConcurrentHashMap Change-Id: If858706de8e0dad6d896e57d7816326327c031a8
* Revert "Adding unit tests for exception classes"Sorin Basca2021-04-265-333/+2
| | | | | | | | | | | | | Revert submission 1660319-java-util-concurrent-unit-tests-1 Reason for revert: Removing unit tests which cause too much divergence from upstream Reverted Changes: Idc905cc6b:Adding unit tests for exception classes I700188e1d:Adding unit tests for ConcurrentSkipListSet Ifa55996c2:Adding unit tests for ConcurrentSkipListMap Ic2a58cae5:Adding unit tests for ConcurrentHashMap Change-Id: I7b0828df7ed5f549adf734cf6808029649990d11
* Adding unit tests for exception classesSorin Basca2021-04-195-2/+333
| | | | | | | | | | | | | | | | | | | | | | Adding tests to cover the following APIs: java.util.concurrent.BrokenBarrierException.BrokenBarrierException(java.lang.String) java.util.concurrent.CompletionException.CompletionException() java.util.concurrent.CompletionException.CompletionException(java.lang.String) [X] java.util.concurrent.CompletionException.CompletionException(java.lang.String, java.lang.Throwable) java.util.concurrent.CompletionException.CompletionException(java.lang.String, java.lang.Throwable) java.util.concurrent.ExecutionException.ExecutionException() java.util.concurrent.ExecutionException.ExecutionException(java.lang.String) java.util.concurrent.ExecutionException.ExecutionException(java.lang.String, java.lang.Throwable) java.util.concurrent.RejectedExecutionException.RejectedExecutionException() java.util.concurrent.RejectedExecutionException.RejectedExecutionException(java.lang.String, java.lang.Throwable) java.util.concurrent.RejectedExecutionException.RejectedExecutionException(java.lang.Throwable) Bug: 182165523 Test: atest CtsLibcoreOjTestCases:BrokenBarrierExceptionTest Test: atest CtsLibcoreOjTestCases:CompletionExceptionTest Test: atest CtsLibcoreOjTestCases:ExecutionExceptionTest Test: atest CtsLibcoreOjTestCases:RejectedExecutionExceptionTest Change-Id: Idc905cc6baf770ff514adcf9ae00547832271e09
* Adding unit tests for ConcurrentSkipListSetSorin Basca2021-04-191-2/+71
| | | | | | | | | | | | Adding tests to cover the following APIs: java.util.concurrent.ConcurrentSkipListSet.ConcurrentSkipListSet(java.util.SortedSet) java.util.concurrent.ConcurrentSkipListSet.clone() java.util.concurrent.ConcurrentSkipListSet.descendingIterator() Bug: 182165523 Test: atest CtsLibcoreOjTestCases:ConcurrentSkipListSetTest Change-Id: I700188e1d2aeaf1b9f8a20fb64443e9a1b22dd53
* Adding unit tests for ConcurrentSkipListMapSorin Basca2021-04-191-4/+49
| | | | | | | | | | | | | | | | | | | | | | | | Adding tests to cover the following APIs: java.util.concurrent.ConcurrentSkipListMap.clone() java.util.concurrent.ConcurrentSkipListMap.firstEntry() java.util.concurrent.ConcurrentSkipListMap.lastEntry() Modified existing tests to cover the following APIs: java.util.concurrent.ConcurrentSkipListMap.headMap(K) java.util.concurrent.ConcurrentSkipListMap.subMap(K, K) java.util.concurrent.ConcurrentSkipListMap.tailMap(K) These APIs - headMap(K), subMap(K, K), tailMap(K) - are just a simplified version of other equivalent APIs which were already tested with the "default" parameters. Since those, fuller, APIs are also tested in other places, the existing tests with "default" parameters have been converted to just use the simplified API. Change-Id: Ifa55996c27f385353e4393b5bac1f176276ab378 Bug: 182165523 Test: atest CtsLibcoreOjTestCases:ConcurrentSkipListMapTest
* Adding unit tests for ConcurrentHashMapSorin Basca2021-04-191-1/+185
| | | | | | | | | | | | | | | | | Adding tests to cover the following APIs: java.util.concurrent.ConcurrentHashMap.newKeySet(int) java.util.concurrent.ConcurrentHashMap.reduceEntries(long, java.util.function.Function, java.util.function.BiFunction) java.util.concurrent.ConcurrentHashMap.reduceEntriesToDouble(long, java.util.function.ToDoubleFunction, double, java.util.function.DoubleBinaryOperator) java.util.concurrent.ConcurrentHashMap.reduceEntriesToInt(long, java.util.function.ToIntFunction, int, java.util.function.IntBinaryOperator) java.util.concurrent.ConcurrentHashMap.reduceEntriesToLong(long, java.util.function.ToLongFunction, long, java.util.function.LongBinaryOperator) java.util.concurrent.ConcurrentHashMap.reduceToDouble(long, java.util.function.ToDoubleBiFunction, double, java.util.function.DoubleBinaryOperator) java.util.concurrent.ConcurrentHashMap.reduceToInt(long, java.util.function.ToIntBiFunction, int, java.util.function.IntBinaryOperator) java.util.concurrent.ConcurrentHashMap.reduceToLong(long, java.util.function.ToLongBiFunction, long, java.util.function.LongBinaryOperator) Change-Id: Ic2a58cae5c56d3197445872aad1e7c30e20ba0df Bug: 182165523 Test: atest CtsLibcoreOjTestCases:ConcurrentHashMap8Test
* Shorten test.java.awt.font.NumericShaper.MTTest from 180s to 15sVictor Chang2021-03-231-1/+3
| | | | | | Fix: 183290003 Test: atest CtsLibcoreOjTestCases:test.java.awt.font.NumericShaper.MTTest Change-Id: Ie324784c5482f79a455a81884ea94932fd9f6827
* Merge "Update java.util.List to 11+28"Nikita Iashchenko2021-03-031-0/+373
|\
| * Update java.util.List to 11+28Nikita Iashchenko2021-03-021-0/+373
| | | | | | | | | | | | Bug: 160356973 Test: treehugger Change-Id: I5ed9ec74ed8a84a9eb7636c308e2fa6c4e77957b
* | Android patch: Modify test.java.util.concurrent.tck tests to pass on Android ↵Victor Chang2021-03-0199-2931/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Attempt 2 The 1st attempt is reverted due to http://b/181312360. The solution is to mark Collection8Test as abstract class instead. Verified by running `atest CtsLibcoreOjTestCases` To add API coverage to classes, e.g. java.util.SplittableRandom A few tests are removed because they are not compiled on Android. SubmissionPublisherTest: Android has not SubmissionPublisher class TimeUnit8Test: Android doesn't have all the APIs as upstream 9+181. Atomic*9Test: Android doesn't have all the APIs as upstream 9+181 Note that test.java.util.concurrent.tck has some similiar tests as tests in libcore/jsr166-tests, but they are not strict superset or subset. Upstream apparently will add more tests over the time as *9Test are new. Test failures are added into expectations/knownfailures.txt. b/181171596 to invesigate the failures in details Bug: 119393918 Test: atest CtsLibcoreOjTestCases Change-Id: I70ff582fe5331aa74c44f556722afcdc958e0ac8
* | Import java.util.concurrent.tck tests from 9+181 - Attempt 2Victor Chang2021-03-01100-0/+70480
| | | | | | | | | | | | Bug: 119393918 Test: N/A Change-Id: I69cf81ef295ac7f4aca508be13f72a17970c17d9
* | Merge changes from topic ↵Treehugger Robot2021-02-2690-67651/+0
|\ \ | |/ |/| | | | | | | | | | | "revert-1607393-test.java.util.concurrent.tck-XSSJZWQZEL" * changes: Revert "Import java.util.concurrent.tck tests from 9+181" Revert "Android patch: Modify test.java.util.concurrent.tck test..."
| * Revert "Import java.util.concurrent.tck tests from 9+181"vichang2021-02-26100-70480/+0
| | | | | | | | | | | | | | | | | | | | | | Revert submission 1607393-test.java.util.concurrent.tck Reason for revert: http://b/181312360 Reverted Changes: I9e054a400:Android patch: Modify test.java.util.concurrent.tc... I767bdf805:Import java.util.concurrent.tck tests from 9+181 Change-Id: I5a4f960842198c2aadf110c823c85724b7d0eaff
| * Revert "Android patch: Modify test.java.util.concurrent.tck test..."vichang2021-02-2699-100/+2929
| | | | | | | | | | | | | | | | | | | | | | Revert submission 1607393-test.java.util.concurrent.tck Reason for revert: http://b/181312360 Reverted Changes: I9e054a400:Android patch: Modify test.java.util.concurrent.tc... I767bdf805:Import java.util.concurrent.tck tests from 9+181 Change-Id: I8fa8752dc09b3911bfed02f8274d44c806aa8578
* | Android patch: Add tests for NumericShaperVictor Chang2021-02-254-4/+28
| | | | | | | | | | | | Bug: 119393918 Test: atest CtsLibcoreOjTestCases:test.java.awt Change-Id: I7d4d31238de61d1bd99425746110f19fbc53ddd8
* | Import test for NumericShaper from 8u121-b13Victor Chang2021-02-254-0/+479
|/ | | | | | Bug: 119393918 Test: N/A Change-Id: I1294fb8b7c02de9970d1f81e07def2ce68f4588d
* Android patch: Modify test.java.util.concurrent.tck tests to pass on AndroidVictor Chang2021-02-2599-2929/+100
| | | | | | | | | | | | | | | | | | | | | To add API coverage to classes, e.g. java.util.SplittableRandom A few tests are removed because they are not compiled on Android. SubmissionPublisherTest: Android has not SubmissionPublisher class TimeUnit8Test: Android doesn't have all the APIs as upstream 9+181. Atomic*9Test: Android doesn't have all the APIs as upstream 9+181 Note that test.java.util.concurrent.tck has some similiar tests as tests in libcore/jsr166-tests, but they are not strict superset or subset. Upstream apparently will add more tests over the time as *9Test are new. Test failures are added into expectations/knownfailures.txt. b/181171596 to invesigate the failures in details Bug: 119393918 Test: atest CtsLibcoreOjTestCases:test.java.util.concurrent Change-Id: I9e054a400cdebd2a2f6ee77d804bd425d804d1af
* Import java.util.concurrent.tck tests from 9+181Victor Chang2021-02-25100-0/+70480
| | | | | | Bug: 119393918 Test: N/A Change-Id: I767bdf80569463727126c1ea1de53d0c1640ebd8
* Merge "Update test expectation due to locale data change in ICU 68.2"vichang2021-01-221-3/+9
|\
| * Update test expectation due to locale data change in ICU 68.2Victor Chang2021-01-211-3/+9
| | | | | | | | | | | | Bug: 160356314 Test: atest CtsIcu4cTestCases CtsIcuTestCases CtsLibcoreTestCases CtsLibcoreOjTestCases CtsBionicTestCases CtsTextTestCases Change-Id: I068d42d5184a169cd5b6291a383e4d161f84a286
* | Merge "Update java.util.Map partially to 11+28"Nikita Iashchenko2021-01-211-0/+100
|\ \
| * | Update java.util.Map partially to 11+28Nikita Iashchenko2021-01-201-0/+100
| | | | | | | | | | | | | | | | | | | | | | | | Imported copyOf method and unit tests. Bug: 160356973 Test: atest CtsLibcoreOjTestCases:test.java.util.Map.MapFactories Change-Id: I1b9459794ac4d8fee85af75ed11f9b06f7d5166d
* | | Update java.time.Duration partially to 11+28Nikita Iashchenko2021-01-211-1/+330
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated javadocs. Imported methods: * long dividedBy(Duration divisor) * long toDaysPart() * int toHoursPart() * int toMinutesPart() * int toSecondsPart() * int toMillisPart() * int toNanosPart() * Duration truncatedTo(TemporalUnit) Test: atest CtsLibcoreOjTestCases:tck.java.time.TCKDuration Change-Id: Ie976bec8224cd7eb0e2d91956b081202fdb022a6
* | Merge changes from topic "oj11-update--math-localtime-duration"Nikita Iashchenko2021-01-204-1/+1069
|\ \ | |/ |/| | | | | | | * changes: Update LocalTime partially to 11+28 Update Math and StrictMath partially to 11+28
| * Update LocalTime partially to 11+28Nikita Iashchenko2021-01-201-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | Imported NANOS_PER_MILLI constant, updated javadocs. Imported methods: * LocalTime ofInstant(Instant, ZoneId) * long toEpochSecond(LocalDate, ZoneOffset) Added unit test from upstream. Test: n/a Change-Id: I814f1e9239c5b672e48bd54dabd0703927b91eea
| * Update Math and StrictMath partially to 11+28Nikita Iashchenko2021-01-203-0/+1008
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | StrictMath methods are essentially the same as Math's so include them both in the same CL. They are also covered by unified unit tests. Added two constants: * DEGREES_TO_RADIANS * RADIANS_TO_DEGREES Added methods: * multiplyExact(long, int) * multiplyFull(int, int) * multiplyHigh(long, long) * floorDiv(long, int) * floorMod(long, int) Added unit tests. Updated csv test expectations for toRadians() and toDegrees() as newly introduced constants improve double precision slightly. Test: atest CtsLibcoreOjTestCases:test.java.lang.Math.ExactArithTests \ CtsLibcoreOjTestCases:test.java.lang.Math.DivModTests \ CtsLibcoreOjTestCases:test.java.lang.Math.MultiplicationTests \ CtsLibcoreTestCases:libcore.java.math.RunCSVTests \ CtsLibcoreTestCases:libcore.java.math.RunCSVTestsStrict Change-Id: Ic54b52e912faf335515fff37baf5854bdf28952b
* | Update java.util.Set partially to 11+28Nikita Iashchenko2021-01-201-0/+95
|/ | | | | | | | Imported copyOf method and unit tests. Bug: 160356973 Test: atest CtsLibcoreOjTestCases:test.java.util.Collection.SetFactories Change-Id: If77fbaa5c5dda38c32678f95821af3a4d0f93df7
* Replace @IntraCoreApi ZoneMeta.getCanonicalCLDRID with a public APIVictor Chang2020-10-141-2/+15
| | | | | | | | No known functional change. Bug: 139480281 Test: atest CtsLibcoreOjTestCases Change-Id: I29754bc25541f0b295a97b3a5c0d225f31454dd1
* Add markers for new Japanese Era related filesNikita Iashchenko2020-02-193-0/+25
| | | | | | | | | | | | | | | | | | | | CLs https://r.android.com/1237091 and https://r.android.com/940636 integrated two upstream OpenJDK commits to finalize support for new Japanese Era Reiwa: * http://hg.openjdk.java.net/jdk/jdk/rev/6a4abdb6749c 8174268: Declare a public field in JapaneseEra for the era starting May 2019 * http://hg.openjdk.java.net/jdk/jdk/rev/3d8934bf505a 8205432: Replace the placeholder Japanese era name This CL adds the appropriate change markers for the differences relative to the respective upstream revision (OpenJDK 8u121-b13 or 8u222, depending on the file). Bug: 149437171 Test: CtsLibcoreTestCases CtsLibcoreOjTestCases Change-Id: I182bc98a374c127b2e6cee41991427f4fe5b9b54
* Declare a public field for new Japanese Era ReiwaNikita Iashchenko2020-02-183-15/+15
| | | | | | | | | | | | Integrate OpenJDK commit for new Japanese Era name: * 8174268: Declare a public field in JapaneseEra for the era starting May 2019 http://hg.openjdk.java.net/jdk/jdk/rev/6a4abdb6749c Bug: 149437171 Test: CtsLibcoreTestCases CtsLibcoreOjTestCases Merged-In: I3e84ed1d809376d2c646ceadc3421b5fb55982b5 Change-Id: I3e84ed1d809376d2c646ceadc3421b5fb55982b5
* Android patch: update TestDateTimeTextProvider test expectations with CLDR ↵Nikita Iashchenko2019-12-191-20/+21
| | | | | | | | data from icu65.1 Bug: 138853239 Test: atest CtsLibcoreOjTestCases:test.java.time.format.TestDateTimeTextProvider Change-Id: Ib01fc67914523b81d253db1a2d43d9e17076520c
* Cleanup "NewEra" comment after implementing new Japanese EraNikita Iashchenko2019-04-251-1/+1
| | | | | | | | | | | This comment has been removed in the upstream commit http://hg.openjdk.java.net/jdk/jdk/rev/3d8934bf505a#l15.25 and should have also been removed in http://r.android.com/940636, but we missed that during merging. Bug: 77858319 Test: m droid Change-Id: Ifa1b08e72328aaefd48a615a445e2331e9407d5f
* New Japanese Era implementation with actual Reiwa name (part 2)Nikita Iashchenko2019-04-241-2/+1
| | | | | | | | | | | | | | This change should have been done as a part of http://r.android.com/940636 but was accidentally missed during merging. It includes the following upstream commit: 8205432: Replace the placeholder Japanese era name http://hg.openjdk.java.net/jdk/jdk/rev/3d8934bf505a Bug: 77858319 Test: cts-tradefed run cts-dev -m CtsLibcoreOjTestCases Test: cts-tradefed run cts-dev -m CtsLibcoreTestCases Change-Id: Ie74af5b9cb5559a829cbb671f87fd791d1680d8b
* New Japanese Era implementation with actual Reiwa nameNikita Iashchenko2019-04-174-19/+44
| | | | | | | | | | | | Integrate OpenJDK commit for new Japanese Era name: - 8205432: Replace the placeholder Japanese era name http://hg.openjdk.java.net/jdk/jdk/rev/3d8934bf505a Bug: 77858319 Test: CtsLibcoreTestCases Test: CtsLibcoreOjTestCases Change-Id: Ic07b536e7fd62b2d3e0fe4e9edd36d6c6f183b06
* New Japanese Era implementation in ojluni with a placeholder nameNikita Iashchenko2019-04-175-13/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | This integrates all upstream changes up to OpenJDK 8u212-b01 It consists the following commits from upstream - 8202088: Japanese new era implementation http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/bc0a3a91a074 - 8212941: Support new Japanese era in java.time.chrono.JapaneseEra http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/c35f231af17a - 8171049: Era.getDisplayName doesn't work with non-IsoChronology http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/3cb43f3afe1c - 8177678: Overstatement of universality of Era.getDisplayName() implementation http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/49bcab3213c1 - 8054214: JapaneseEra.getDisplayName doesn't return names if it's an additional era http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/0d9af9ca16e2 new Android-changed: - JapaneseImperialCalendar.currentEra is changed to be hard-coded because Zygote could initialize currentEra with incorrect system time. - TestNonIsoFormatter#test_lenientEraYear is updated to use CLDR data Bug: 77858319 Test: CtsLibcoreTestCases Test: CtsLibcoreOjTestCases Change-Id: I74b05bcbd39c5caec48c0de13e784127044b19ff
* Updated test expectations for ICU 60.Fredrik Roubert2017-12-071-2/+2
| | | | | | | | | | - Blacklist StringTest.test_23831 test until b/69599767 is fixed - Other tests are changed due to changes in CLDR data (version 31 -> 32) Bug: 68208236 Test: CtsLibcoreOjTestCases Test: CtsLibcoreTestCases Change-Id: Ic295f81c6140441876a3cf53b88affcc0001b9cd
* Revert accidental change in test.Joachim Sauer2017-11-201-2/+2
| | | | | | | | | | | | | | | | | | | I accidentally reverted a change in TestFormatter to TestFormatter.java in commit If50d927265136e8de964b54ae879291c7be85cfc. Since the original change was unrelated to DecimalFormat, reverting it was not supposed to happen in that commit. The issue was not caught because CtsLibcoreOjTestCases wasn't run for that test (only CtsLibcoreTestCases). Bug: 69418703 Test: CtsLibcoreOjTestCases (cherry picked from commit 044bd5e685b4bd9302ace9f77b7339cbe7e6f893) Change-Id: I4c1935cc120966035e2891a41791fe563e308db1 Merged-In: If6a2dbb615a70739350cbae91cc33754afe2b793
* Use DecimalFormat_ICU58_Android in DecimalFormat.Joachim Sauer2017-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | java.text.DecimalFormat delegates most behaviour to android.icu.text.DecimalFormat. ICU 59 introduced a variety of behaviour changes many of which are not desireable to inherit for java.text.DecimalFormat. This changes java.text.DecimalFormat to delegate to android.icu.text.DecimalFormat_ICU58_Android instead. This class is the ICU 58 implementation of DecimalFormat that ICU ships for testing purposes only. This is a stop-gap measure until we can get the new implementation configured in a way to be close enough to the old behaviour to use in java.text.DecimalFormat. This commit also partially reverts the test that were changed to accomodate the switch to ICU 59 in commit 51f8d749d3100694d695fa0cd32d2fb99c02ba74. The reason the revert is only partial is that not all test changes were caused by code changes. A significant portion was caused by CLDR changes which still affect us, even if we use DecimalFormat_ICU58. Bug: 68143370 Test: CtsLibcoreTestCases Change-Id: If50d927265136e8de964b54ae879291c7be85cfc
* Fix OpenJDK TCK test after 2017c updateNeil Fuller2017-11-071-7/+9
| | | | | | | | | | A 2017c data change for historic transitions broke one of the upstream tests. See also https://bugs.openjdk.java.net/browse/JDK-8190259 Bug: 68878031 Test: run cts -m CtsLibcoreOjTestCases -t tck.java.time.zone.TCKZoneRules Change-Id: I6c15c0a19202d1ad90ec7d05b6e01750e0815849
* Port JDK-7014860Victor Chang2017-08-301-0/+94
| | | | | | | | | | | - API change of SocketImpl.shutdownInput() and available() - available() returns 0 after calling shutdownInput - The change happens after 7 but before 8u60 Bug: 64065632 Test: cts-tradefed run cts-dev --module CtsLibcoreTestCases Test: cts-tradefed run cts-dev --module CtsLibcoreOjTestCases Change-Id: I53c14726e4c46b07bfd026bc010e3fc3c854dbcc
* Updated test expectations for ICU 59.Fredrik Roubert2017-08-101-2/+2
| | | | | | | Bug: 62410016 Test: CtsLibcoreOjTestCases Test: CtsLibcoreTestCases Change-Id: I49de49cd356f6e28429e4fc22d493f77b5efe4c5
* Clear DateFormat.is24Hour during test.Joachim Sauer2017-07-171-0/+16
| | | | | | | | | | | | | | | | | TCKLocalizedPrinterParser checks if java.time.format.DateTimeFormatter and java.text.DateFormat produce the same output for equivalent input. java.text.DateFormat takes into account DateFormat.is24Hour which represents a user-setting forcing a 12- or 24-hour clock. java.time intentionally doesn't respect that, which causes this test to fail when either a 12h or a 24h clock is forced. This commits clears the setting for the duration of the test and re-sets it to its orginal value afterwards. Test: cts --primary-abi-only -m CtsLibcoreOjTestCases Bug: 62651881 Change-Id: I30bab1d5f04cac8bdfc9a455c8ddc3ff39271077
* Merge changes I85d39009,Ibf88a3a6Treehugger Robot2017-04-111-0/+142
|\ | | | | | | | | | | * changes: Direct indirect CRL checks Port certpath validation fixes from openjdk8u121-b13
| * Port certpath validation fixes from openjdk8u121-b13Przemyslaw Szczepaniak2017-04-071-0/+142
| | | | | | | | | | | | | | | | | | | | | | changeset: 9222:eafce9a617ee user: juh date: Fri Mar 21 12:37:10 2014 -0700 summary: 8021804: Certpath validation fails if validity period of root cert does not include validity period of intermediate cert Test: CtsLibcoreOjTestCases Bug: 36461944 Change-Id: Ibf88a3a6bb2b22fc06172facf8c14dc72ecfe349
* | Remove 1000 element arrays from tests.Joachim Sauer2017-04-104-12/+25
|/ | | | | | | | | | | | | | | | | | This removes the arrays of size 1000 from the set of test data for stream tests. On lower-power Android devices these tests often run for a very long time and sometimes even time out or fail with out of memory errors. At the same time this specific size didn't reveal any errors that weren't also revealed at smaller sizes. For example, org.openjdk.tests.java.util.stream.ExplodeOpTest goes from running for 34:03 minutes to 3:42 minutes on a bullhead device. Bug: 36719972 Test: CtsLibcoreOjTestCases Change-Id: Iaa0bbb87254a5b7b919ea3c8efdb1ceffd6fa924
* java.nio.file: Remove support for FileStore information.Narayan Kamath2017-04-065-646/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The API contract allows us to throw a SecurityException, so do that unconditionally. Most processes on Android do not have sufficient privileges to read mount information or to stat mountpoints. This precludes us from implementing this API sensibly. Also, make it clear that ACL / DOS and UserDefined file attribute views are not supported. They require xattr support that may not exist on our file systems. The tests were passing because they silently bailed out. Also, explicitly remove support for Dos / User and Acl based FileAttributeViews. They are not supported, and were being dynamically disabled at run time. This removal is a step forward, except for an unfortunate wart in the API; for some reason supportsFileAttributeView is a method in the FileStore class, but getFileAttributeView is a method on the FileSystemProvider class. This leaves callers without any method to detect what AttributeViews a given file system provider supports, but that should largely be irrelevant for most Android callers. Bug: 36491936 Test: run cts -m CtsLibcoreOjTestCases, CtsLibcoreTestCases Change-Id: I55cd191c52d15213c9f1d162d8f231733628ab75