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

Test for multiscreen mon fails on NOTmultiscreen system

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        regression test suite for 5.0u16b05-rev

        test: j2se/java/awt/Multiscreen/WPanelPeerPerf/WPanelPeerPerf.java

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test must be run on a multiscreen system

        test checked for existing multiscreens
        ....
              // fail if only on one screen
                int numScreens = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().length;
                if (numScreens < 2) {
                    throw new RuntimeException("Test must be run on a multiscreen system");
                }
        ....

        So test as written in source comments 'fail if only on one screen', I think it is logically to make it Passed if only one screen exist because every time we run tests we will see it in unexpected failures, so may be it better to add System.exit(0) in this 'if' block

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  robm Robert Mckenna
                  Reporter:
                  ikobzaresunw Ivan Kobzarev (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: