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

Test serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.java needs to be resilient about warnings

XMLWordPrintable

    • svc
    • 26
    • master

      The new test (JDK-8359472) serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.java has a check that stderr is empty, but if we run the test as part of our "large pages" testing then we can get a VM warning that causes the test to fail.

      ---------System.err:(32/1785)----------
      [10:53:50.047] STARTED EarlyDynamicLoad::jcmd 'jcmd()'
      [10:53:55.537] SUCCESSFUL EarlyDynamicLoad::jcmd 'jcmd()' [5490ms]
      [10:53:55.538] STARTED EarlyDynamicLoad::virtualMachine 'virtualMachine()'
      [10:54:00.697] SUCCESSFUL EarlyDynamicLoad::virtualMachine 'virtualMachine()' [5158ms]
       stdout: [];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve and commit memory using large pages. req_addr: 0x0000000399000000 bytes: 18907922432
      ]
       exitValue = 0

      java.lang.RuntimeException: stderr was not empty
      at jdk.test.lib.process.OutputAnalyzer.stderrShouldBeEmpty(OutputAnalyzer.java:143)
      at EarlyDynamicLoad.stopChild(EarlyDynamicLoad.java:78)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
      at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1120)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
      JavaTest Message: JUnit Platform Failure(s): 1

      See similar discussion in relation to JDK-8370201

            fandreuzzi Francesco Andreuzzi
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: