summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorJoachim Sauer <jsauer@google.com>2017-07-17 15:15:11 +0100
committerJoachim Sauer <jsauer@google.com>2017-07-17 16:47:38 +0100
commitfd8f0567f4dee4faa29b23999d530545201b21e6 (patch)
tree740f3af492fb2a4dbe7272b56d0bb1b985a7ff90 /include/ScopedJavaUnicodeString.h
parentf915693597cb1df35c5181a9746835d9716c6ace (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
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions