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

OptimisticRecompilationTest fails on staging repo nashorn/jdk9/nashorn due to test framework

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        jdk.nashorn.internal.runtime.OptimisticRecompilationTest following 9 test cases fail on staging's nightly runs due to standard error is an empty buffer.
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::andTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::divisionByInfinityTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::divisionByStringTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::divisionByZeroTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::divisionWithRemainderTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::functionTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::infinityMultiplicationTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::maxValueMultiplicationTest
        jdk.nashorn.internal.runtime.OptimisticRecompilationTest::nestedFunctionTest

        <testsuite hostname="slc07fmz" name="jdk.nashorn.internal.runtime.OptimisticRecompilationTest" tests="9" failures="0" timestamp="25 Mar 2014 06:10:51 GMT" time="0.099" errors="9">
          <testcase name="divisionWithRemainderTest" time="0.007" classname="jdk.nashorn.internal.runtime.OptimisticRecompilationTest">
            <error type="java.lang.AssertionError" message="Number of Deoptimizing recompilation is not correct, expected: 1 and found: 0
        ">
              <![CDATA[java.lang.AssertionError: Number of Deoptimizing recompilation is not correct, expected: 1 and found: 0

        at org.testng.Assert.fail(Assert.java:89)
        at jdk.nashorn.internal.runtime.OptimisticRecompilationTest.runTest(OptimisticRecompilationTest.java:66)
        at jdk.nashorn.internal.runtime.OptimisticRecompilationTest.divisionWithRemainderTest(OptimisticRecompilationTest.java:114)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:484)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
        at org.testng.TestRunner.privateRun(TestRunner.java:767)
        at org.testng.TestRunner.run(TestRunner.java:617)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
        at org.testng.SuiteRunner.run(SuiteRunner.java:240)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
        at org.testng.TestNG.run(TestNG.java:1030)
        at org.testng.TestNG.privateMain(TestNG.java:1337)
        at org.testng.TestNG.main(TestNG.java:1306)

        The fix is to not rely on the output when running with --log=recompile and use instead hooks to the debug

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mnunez Matherey Nunez (Inactive)
                Reporter:
                mnunez Matherey Nunez (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: