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

[TESTBUG] tools/jpackage/share/JavaOptionsEqualsTest.java fails with debug VMs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b27

      Backports

        Description

        * Reproduce
        ```
        Ben="tools/jpackage/share/JavaOptionsEqualsTest.java"
        make test TEST="${Ben}" CONF=fastdebug
        ```

        * Symptom
        ```
        JavaTest Message: Test threw exception: java.lang.AssertionError: Unexpected number of lines: 12 - output: WARNING: Unknown module: other.mod.bar specified to --add-exports
        WARNING: Unknown module: me.mymodule.foo specified to --add-exports
        0 output/test/bin/test
        1 -Djava.library.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app:/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin
        2 -Djava.launcher.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin
        3 --add-exports=java.base/sun.util=me.mymodule.foo,ALL-UNNAMED
        4 --add-exports=java.base/sun.security.util=other.mod.bar,ALL-UNNAMED
        5 -classpath
        6 /home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app/hello.jar
        7 Hello
        hello: Environment supports a display
        jpackage test application
        args.length: 0
        hello: Output file: [appOutput.txt]

        ...

        TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Unexpected number of lines: 12 - output: WARNING: Unknown module: other.mod.bar specified to --add-exports WARNING: Unknown module: me.mymodule.foo specified to --add-exports 0 output/test/bin/test 1 -Djava.library.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app:/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin 2 -Djava.launcher.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin 3 --add-exports=java.base/sun.util=me.mymodule.foo,ALL-UNNAMED 4 --add-exports=java.base/sun.security.util=other.mod.bar,ALL-UNNAMED 5 -classpath 6 /home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app/hello.jar 7 Hello hello: Environment supports a display jpackage test application args.length: 0 hello: Output file: [appOutput.txt]
        --------------------------------------------------
        Test results: failed: 1

        ...
        ```

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jiefu Jie Fu
                  Reporter:
                  jiefu Jie Fu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: