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

[TEST_BUG] bug8033699.java fails when run in group

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood

      Description

      The test javax/swing/JRadioButton/8033699/bug8033699.java fails regularly when run in a group of tests:

      jdk-dev> ./build/jdk-17/bin/java -jar ../jtreg/lib/jtreg.jar -nr -v -a -ignore:quiet -w:build/jtwork -r:build/jtreport open/test/jdk/java/awt/Focus/FocusTransitionTest/FocusTransitionTest.java open/test/jdk/java/awt/Focus/FocusTraversalPolicy/{DefaultFTPTest.java,InitialFTP.java,LayoutFTPTest.java} open/test/jdk/javax/swing/JRadioButton/8033699/bug8033699.java

      ...
      runner starting test: javax/swing/JRadioButton/8033699/bug8033699.java
      runner finished test: javax/swing/JRadioButton/8033699/bug8033699.java
      Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
      Test results: passed: 4; failed: 1

      In this case, it seems the frame of the test is not activated because, after jtreg exists, I hear a bell and prompt in the console:
      Display all ### possibilities? (y or n)

      That is the Tab key press generated by the Robot in the test is sent to Cygwin Terminal rather than the test frame. It's the reason why the test fails.

      When the test is run on its own or in another sequence of tests, it passes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aivanov Alexey Ivanov
              Reporter:
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: