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

Mark unstable tests so they will be skipped until fixed

XMLWordPrintable

        We have several tests that intermittently fail, or which fail in some environments, such as HiDPI. We should mark these test as unstable by adding the following to the test:

            assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-nnnnnnn

        where JDK-nnnnnnn refers to the original test failure bug, not to the bug that will mark the tests as unstable (i.e., not JDK-8196592). This will prevent them from running by default. Unstable tests are run if the "-PUNSTABLE_TEST=true" option is passed to gradle test.

        NOTE: this should not be used as a way to skip tests that fail all the time in all environments, nor tests that indicate product bugs. Those should be '@Ignore'd instead.

              mbilla Murali Billa
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: