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

ArgumentsTest.set_numeric_flag_double_vm fails on some locales

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • 19
    • hotspot
    • None
    • b17

      ```
      [----------] Global test environment set-up.
      [----------] 1 test from ArgumentsTest
      [ RUN ] ArgumentsTest.set_numeric_flag_double_vm
      /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/runtime/test_arguments.cpp:599: Failure
      Value of: ArgumentsTest::parse_argument(flag->name(), str)
        Actual: false
      Expected: true
      Valid string '1.e-2' did not parse for type double.
      [ FAILED ] ArgumentsTest.set_numeric_flag_double_vm (0 ms)
      [----------] 1 test from ArgumentsTest (85 ms total)

      [----------] Global test environment tear-down
      [==========] 1 test from 1 test case ran. (85 ms total)
      [ PASSED ] 0 tests.
      [ FAILED ] 1 test, listed below:
      [ FAILED ] ArgumentsTest.set_numeric_flag_double_vm

       1 FAILED TEST
      ERROR: RUN_ALL_TESTS() failed. Error 1
      ```

      Seems to be locale-dependent. I run with LC_NUMERIC=en_DK.UTF-8. Switching to LC_NUMERIC="en_US.UTF-8" makes the error disappear.


            iklam Ioi Lam
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: