# HG changeset patch # User erikj # Date 1555532309 25200 # Node ID 93b702d2a0cb9e32160208f6700aede1f8492773 # Parent 7689e1cc56fe144b7b1ef3517d64fc64a6197ab1 8222444: Add a suggestion for non-US locale in the test doc Reviewed-by: erikj Contributed-by: jingtian@loongson.cn diff -r 7689e1cc56fe -r 93b702d2a0cb doc/testing.html --- a/doc/testing.html Wed Apr 17 08:12:19 2019 -0700 +++ b/doc/testing.html Wed Apr 17 13:18:29 2019 -0700 @@ -41,6 +41,7 @@
$ make test TEST="jtreg:test/hotspot/jtreg/containers/docker"
To run these tests correctly, additional parameters for the correct docker image are required on Ubuntu 18.04 by using JAVA_OPTIONS
.
$ make test TEST="jtreg:test/hotspot/jtreg/containers/docker" JTREG="JAVA_OPTIONS=-Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=latest"
+If your locale is non-US, some tests are likely to fail. To work around this you can set the locale to US. On Unix platforms simply setting LANG="en_US"
in the environment before running tests should work. On Windows, setting JTREG="VM_OPTIONS=-Duser.language=en -Duser.country=US"
helps for most, but not all test cases. For example:
$ export LANG="en_US" && make test TEST=...
+$ make test JTREG="VM_OPTIONS=-Duser.language=en -Duser.country=US" TEST=...