N Backport: Add a regression test for bug 118835133
Adding a basic test to ensure we don't the same issue in future. Bug: 118835133 Test: run cts-dev -m CtsTextTestCases -t android.text.format.cts.TimeTest Backport notes: The TimeTest.test_bug118835133 regression test is being backported here to still-supported CTS releases to alert partners to problems they will experience if they take the "tzdata" file from releases after Q/10 and use them with source trees for releases before Q. If the TimeTest.test_bug118835133 test fails you have a problem that will affect time zone calculations in some zones (e.g. Asia/Singapore and Europe/Istanbul). These problems have been fixed on latest code but there are no plans to backport them. Do NOT use files from one release with another: releases before Q have compatibility issues with tzdata files produced using zic versions > 2014b. Android upgraded to a newer zic version after Q. The ICU files have to be updated at the same time and .dat files from one Android release won't work with a different release. At the time of writing, the Android team provide backports for O-MR1 and P releases and place them in the associated aosp/XXX-dev branch. Reach out to your partner contact for more information. For those without a partner contact, look for topics in the AOSP gerrit that changed system/timezone and external/icu after the release tag. Apply ALL of the incremental changes in order. Partners with changes to ICU data will find the changes won't apply cleanly due to the .dat binary files contained in the commits. Apply the changes to source files and then regenerate the binary files using system/timezone/update-tzdata.py. The Android team do not currenly provide backports for release before O-MR1. Bug: 140155124 Change-Id: I7bceaf28c60ea9658a0b1ebee66f2050f219bbd0 Merged-In: I7bceaf28c60ea9658a0b1ebee66f2050f219bbd0 (cherry picked from commit faff79fc)
Loading
Please sign in to comment