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

Exclude List/KeyEventsTest/KeyEventsTest.java from running on macOS

XMLWordPrintable

    • b25

        The code in java/awt/List/KeyEventsTest/KeyEventsTest.java returns if the test is run on macOS.

                boolean isWin = false;
                if (Platform.isWindows()) {
                    isWin = true;
                } else if (Platform.isOSX()) {
                    System.out.println("Not for OS X");
                    return;
                }
        https://github.com/openjdk/jdk/blob/236c71cad9fa269518456c11edcfb353bbfc084d/test/jdk/java/awt/List/KeyEventsTest/KeyEventsTest.java#L264-L270

        The test must have @requires tag so that it's not even selected for running on macOS. The condition can be removed from the test.

              rkannathpari Renjith Kannath Pariyangad
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: