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

TEST_BUG : java/lang/ProcessBuilder/BasicLauncher.java fails if java output contains VM warning

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • OS:
      solaris

      Backports

        Description

        Test java/lang/ProcessBuilder/BasicLauncher.java fails if java output contains VM warning

        ----------System.out:(41/2148)*----------
        [Output: testproc]This appears to be a Unix system.
        [Output: testproc]Testing ASCII environment values
        [Output: testproc]Testing directory .
        [Output: testproc]Testing directory ..
        [Output: testproc]Testing directory /
        [Output: testproc]Warning: Cannot open log file: hotspot.log
        [Output: testproc]Warning: Forcing option -XX:LogFile=/tmp/hs_pid2869.log
        [Output: testproc]/ not equal to /
        [Output: testproc]java.lang.Exception: Stack trace
        [Output: testproc] at java.lang.Thread.dumpStack(Thread.java:1364)
        [Output: testproc] at Basic.fail(Basic.java:2291)
        [Output: testproc] at Basic.fail(Basic.java:2292)
        [Output: testproc] at Basic.equal(Basic.java:2298)
        [Output: testproc] at Basic.realMain(Basic.java:1559)
        [Output: testproc] at Basic.main(Basic.java:2301)
        [Output: testproc]Testing directory /bin
        [Output: testproc]Warning: Cannot open log file: hotspot.log
        [Output: testproc]Warning: Forcing option -XX:LogFile=/tmp/hs_pid2872.log
        [Output: testproc]/usr/bin not equal to /usr/bin
        [Output: testproc]java.lang.Exception: Stack trace
        [Output: testproc] at java.lang.Thread.dumpStack(Thread.java:1364)
        [Output: testproc] at Basic.fail(Basic.java:2291)
        [Output: testproc] at Basic.fail(Basic.java:2292)
        [Output: testproc] at Basic.equal(Basic.java:2298)
        [Output: testproc] at Basic.realMain(Basic.java:1559)
        [Output: testproc] at Basic.main(Basic.java:2301)
        [Output: testproc]cmdp
        [Output: testproc]cmdp 0: /export/local/common/jdk/baseline/solaris-i586/jre/bin/java
        [Output: testproc]cmdp 1: -classpath
        [Output: testproc]cmdp 2: /export/local/332962.JAVASE.NIGHTLY.VM.7u60_Nightly_Baseline.2013-12-16.solaris-i586_javase__client_comp_JT_JDK_java_lang.runTests/results/workDir/classes/java/lang/ProcessBuilder
        [Output: testproc]cmdp 3: Basic$JavaChild
        [Output: testproc]cmdp 4: System.getenv()
        [Output: testproc]envp
        [Output: testproc]envp 0: LC_ALL=C\u0000\u0000
        [Output: testproc]envp 1: FO\u0000=B\u0000R
        [Output: testproc]
        [Output: testproc]Passed = 9122, failed = 2
        [Output: testproc]
        [Output: testproc]Exception in thread "main" java.lang.AssertionError: Some tests failed
        [Output: testproc] at Basic.main(Basic.java:2303)

        As I understand this tests starts child java process and then checks that output is equal to expected one. However, output may contain some VM warnings and test will fail.
        It should be able to filter out VM warning from child output.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tyan Tristan Yan (Inactive)
                  Reporter:
                  fzhinkin Filipp Zhinkin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: