diff options
author | Joachim Sauer <jsauer@google.com> | 2017-07-17 15:15:11 +0100 |
---|---|---|
committer | Koji Fukui <koji.fukui@sonymobile.com> | 2017-09-19 02:13:39 +0000 |
commit | b8ab2bf3909daea733a991fcc5f8261b25577594 (patch) | |
tree | 567caf811d1bfc0fdca616f9e7b89ed4bed7adf7 /annotations/generate_annotated_java_files.py | |
parent | 76c13bb7c7079351105a98588f13f12b9511e516 (diff) |
Clear DateFormat.is24Hour during test.
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
(cherry picked from commit fd8f0567f4dee4faa29b23999d530545201b21e6)
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions