Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8283606

Tests may fail with zh locale on MacOS

XMLWordPrintable

    • b22
    • os_x

        From the test doc of openjdk https://openjdk.java.net/groups/build/doc/testing.html

        <quote>
        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.
        </quote>

        However, on MacOS 12.1, even with the above suggestions, some tests still fail, including the following in tier-1. The tests expects output messages in English, but Chinese message are still produced.

        test/hotspot/jtreg/runtime/classFileParserBug/TestEmptyBootstrapMethodsAttr.java
        test/langtools/jdk/javadoc/tool/6964914/TestStdDoclet.java
        test/langtools/jdk/javadoc/tool/6964914/TestUserDoclet.java
        test/langtools/jdk/javadoc/tool/EnsureNewOldDoclet.java
        test/langtools/jdk/javadoc/tool/testLocaleOption/TestLocaleOption.java
        test/langtools/tools/javac/T8132562/ClassPathWithDoubleQuotesTest.java
        test/langtools/tools/javac/options/smokeTests/OptionSmokeTest.java
        test/langtools/tools/javac/platform/PlatformProviderTest.java
        test/langtools/tools/jdeps/MultiReleaseJar.java

         

              iklam Ioi Lam
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: