From 5756385c2bb106917f45ba71b24cf1645f702ebf Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Fri, 24 Sep 2021 23:12:31 +0000 Subject: [PATCH] 8274273: Update testing docs for MacOS with Non-US locale Reviewed-by: erikj --- doc/testing.html | 2 +- doc/testing.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/testing.html b/doc/testing.html index 97960a7e994..1146400df80 100644 --- a/doc/testing.html +++ b/doc/testing.html @@ -229,7 +229,7 @@ TEST FAILURE JTREG="JAVA_OPTIONS=-Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=latest"

Non-US locale

-

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.

+

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 or MacOS, 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=...
diff --git a/doc/testing.md b/doc/testing.md index 4bbedf6e6d6..5dde4d11804 100644 --- a/doc/testing.md +++ b/doc/testing.md @@ -506,7 +506,7 @@ $ make test TEST="jtreg:test/hotspot/jtreg/containers/docker" \ 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 +in the environment before running tests should work. On Windows or MacOS, setting `JTREG="VM_OPTIONS=-Duser.language=en -Duser.country=US"` helps for most, but not all test cases.