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

jdk/test/lib/process/ProcessToolsStartProcessTest.java fails with "wrong number of lines in OutputAnalyzer output"

    XMLWordPrintable

Details

    • b22
    • x86_64, aarch64
    • linux, windows

    Backports

      Description

        The following test failed in the JDK21 CI:

        jdk/test/lib/process/ProcessToolsStartProcessTest.java

        Here's a snippet from the log file:

        FAILED: wrong number of lines in OutputAnalyzer output
        DEBUG: OutputAnalyzer output: got 12 lines, expected 50. Output follows:
        A line on stdout 0
        A line on stdout 1
        A line on stdout 2
        A line on stdout 3
        A line on stdout 4
        A line on stdout 5
        A line on stdout 6
        A line on stdout 7
        A line on stdout 8
        A line on stdout 9
        A line on stdout 10
        A line on stdout 11
        DEBUG: done with OutputAnalyzer stdout.
        Test ERROR
        ----------System.err:(16/1058)----------
        java.lang.RuntimeException: One or more tests failed. See output for details.
        at ProcessToolsStartProcessTest.main(ProcessToolsStartProcessTest.java:109)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.Thread.run(Thread.java:1592)
        java.lang.RuntimeException: One or more tests failed. See output for details.
        at ProcessToolsStartProcessTest.main(ProcessToolsStartProcessTest.java:109)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.Thread.run(Thread.java:1592)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: One or more tests failed. See output for details.

        This is a new test that came with the fix for:

        JDK-8233725 ProcessTools.startProcess() has output issues when using an OutputAnalyzer at the same time

        Attachments

          Issue Links

            Activity

              People

                lmesnik Leonid Mesnik
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: