summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2020-03-02 19:09:36 +0000
committerVictor Chang <vichang@google.com>2020-05-26 21:33:08 +0100
commit5d3661115d1ebcc79bfd2b146135fb6ff3ab7894 (patch)
tree6f09a1f4361da97bbbe6cf1547e02eb2a8cb801f /annotations/generate_annotated_java_files.py
parente854e4f7666b2dbea90526b70dae57eaf8fab908 (diff)
ScannerTest#testPerformance(): Improve failure reporting.
This test apparently sometimes fails to match "123 " against the floatPattern constructed at runtime, but I can't reproduce and can't see why it would. It might be related to an issue inside ICU that only occurs a rare fraction of the time, or it might be related to a nonstandard Locale. This CL adds more detail to the failure case in order to narrow this down. I've also slightly tweaked the initialization part of the test. Bug: 150310094 Test: atest CtsLibcoreTestCases:org.apache.harmony.tests.java.util.ScannerTest#testPerformance (takes about 15 seconds on a Pixel 2). Test: To make sure that I didn't have a bug in my String.format(), temporarily moved the initialization of String message to in front of the try block and checked that the test still passed (but then took 21sec, unsurprisingly). Merged-In: Ib7d29e798515ebd7da474916078f6f3b39fd8a62 Change-Id: Ib7d29e798515ebd7da474916078f6f3b39fd8a62 (cherry picked from commit 1495b25cfc20d4f27472506fb713e5b011a70094)
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions