ResultFormatTest.latex* tests fail on Windows when russian locale is default.

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Jan 12 10:35:16 UTC 2015


Hi Vladimir,

On 01/10/2015 01:59 AM, Vladimir Ozerov wrote:
> Tests fail because RU locale use "," as a decimal separator while test
> expects it to be ".".

Thanks, here is a bug:
 https://bugs.openjdk.java.net/browse/CODETOOLS-7901235

And here is a committed fix:
 http://hg.openjdk.java.net/code-tools/jmh/rev/f1ab355e5f76

> This could be easily fixed by setting "en-US" locale as default and then
> reverting it back in either try-finally blocks or JUnit @Before/@After
> methods.

Well, the issue here is two-fold: first, golden files for LaTeX are only
valid in a single locale; second, other result formatters are
disregarding the locale settings anyway. Therefore, the quickest fix is
make LaTeX RF to disregard the locale as well.

We would need to figure out the RF locales as a follow-up:
 https://bugs.openjdk.java.net/browse/CODETOOLS-7901236

Thanks,
-Aleksey.




More information about the jmh-dev mailing list