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

jdk/jshell/StartOptionTest.java test StartOptionTest.testPreviewEnabled failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 26
    • 26
    • tools
    • aarch64
    • os_x

      The following test failed in the JDK26 CI:

      jdk/jshell/StartOptionTest.java

      Here's a snippet from the log file:

      #section:testng
      ----------messages:(8/959)----------
      command: testng --patch-module jdk.jshell=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-26+9-887/src.full/open/test/langtools/jdk/jshell/StartOptionTest-module-patch StartOptionTest
      reason: User specified action: run testng/othervm --patch-module jdk.jshell=${test.src}/StartOptionTest-module-patch StartOptionTest
      started: Tue Jul 29 13:56:21 GMT 2025
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.compiler,jdk.jdeps,jdk.jshell --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-exports jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED --add-exports jdk.jshell/jdk.internal.jshell.tool=ALL-UNNAMED --add-exports jdk.jshell/jdk.internal.jshell.tool.resources=ALL-UNNAMED --add-opens jdk.jshell/jdk.internal.jshell.tool.resources=ALL-UNNAMED
      Process id: 46127
      finished: Tue Jul 29 13:56:56 GMT 2025
      elapsed time (seconds): 35.637
      ----------configuration:(10/710)----------

      <snip>

      ----------System.out:(105/5689)----------
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testClasspath(): success [50ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testCommandFile(): success [857ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testErroneousFile(): success [731ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testExitCode(): success [1083ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testFeedbackOptionConflict(): success [10ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testHelpExtra(): success [3ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testHypenFile(): success [1963ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testInput(): success [1107ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testNegFeedbackOption(): success [469ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test
      test StartOptionTest.testPreviewEnabled(): failure [27342ms]
      java.lang.AssertionError: expected [test
      ] but 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 org.testng.Assert.assertEquals(Assert.java:639)
      at StartOptionTest.lambda$testPreviewEnabled$3(StartOptionTest.java:444)
      at StartOptionTest.check(StartOptionTest.java:117)
      at StartOptionTest.startCheckUserOutput(StartOptionTest.java:166)
      at StartOptionTest.testPreviewEnabled(StartOptionTest.java:444)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      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:1604)
      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:107)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:63)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testShowVersion(): success [497ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testStartup(): success [1ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testStartupFailedOption(): success [418ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testStartupUnknown(): success [1ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testUnknown(): success [0ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testUnknownLoadFile(): success [249ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testUnknownModule(): success [289ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testUsage(): success [0ms]
      config StartOptionTest.tearDown(): success [0ms]
      config StartOptionTest.setUp(): success [0ms]
      test StartOptionTest.testVersion(): success [0ms]
      config StartOptionTest.tearDown(): success [0ms]

      ===============================================
      jdk/jshell/StartOptionTest.java
      Total tests run: 19, Passes: 18, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(58/6847)----------

      This is a Tier1 failure so I would normally start this issue as a P2,
      but the failure did not reproduce in the next build-ID. I've added
      the intermittent label and started this issue as a P3.

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: