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

jdk/jshell/ToolBasicTest.java fails after JDK-8295984

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 20
    • 20
    • tools
    • b25
    • x86_64
    • windows
    • Verified

    Description

      The following test failed in the JDK20 CI:

      jdk/jshell/ToolBasicTest.java

      Here's a snippet from the log file:

      #section:testng
      ----------messages:(8/435)----------
      command: testng ToolBasicTest
      reason: User specified action: run testng/timeout=600 ToolBasicTest
      started: Wed Nov 23 17:37:27 UTC 2022
      Mode: agentvm
      Agent id: 7
      Additional exports to unnamed modules from @modules: jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.main jdk.jdeps/com.sun.tools.javap jdk.jshell/jdk.internal.jshell.tool
      finished: Wed Nov 23 17:37:53 UTC 2022
      elapsed time (seconds): 26.463
      ----------configuration:(18/1605)*----------

      <snip>

      ----------System.out:(127/6496)----------
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.elideStartUpFromList(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.elideStartUpFromSave(): success

      <snip>

      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testOpen(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testOpenFileOverHttp(): failure
      java.lang.AssertionError: Expected "File 'http://127.0.0.1:52141/script&#39; for 'jshell' is not found.
      " command error output, got: "File 'http://127.0.0.1:52141/script&#39; for 'jshell' is not found.
      " expected [File 'http://127.0.0.1:52141/script&#39; for 'jshell' is not found.
      ] but found [File 'http://127.0.0.1:52141/script&#39; for 'jshell' is not found.
      ]
      at org.testng.Assert.fail(Assert.java:99)
      at org.testng.Assert.failNotEquals(Assert.java:1037)
      at org.testng.Assert.assertEqualsImpl(Assert.java:140)
      at org.testng.Assert.assertEquals(Assert.java:122)
      at org.testng.Assert.assertEquals(Assert.java:629)
      at ReplToolTesting.testRawCheck(ReplToolTesting.java:338)
      at ReplToolTesting.testRaw(ReplToolTesting.java:308)
      at ReplToolTesting.test(ReplToolTesting.java:259)
      at ReplToolTesting.test(ReplToolTesting.java:234)
      at ToolBasicTest.testOpenFileOverHttp(ToolBasicTest.java:547)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.runSuites(TestNG.java:1069)
      at org.testng.TestNG.run(TestNG.java:1037)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:93)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:1591)
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testOpenLocalFileUrl(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testOpenResource(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testRedeclareVariableNoInit(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testRemoteExit(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testRerun(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testRerunIdRange(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testReset(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testSave(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testStartRetain(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testStartSave(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testStartupFileOption(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testStop(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testSystemExitStartUp(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testVarsWithNotActive(): success
      config ReplToolTesting.setUp(): success
      test ToolBasicTest.testWarningUnchecked(): success

      ===============================================
      jdk/jshell/ToolBasicTest.java
      Total tests run: 39, Passes: 38, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(10/538)----------
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:95)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:1591)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: