jtreg should not count skipped tests as failed

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: jt4.2
    • Component/s: tools
    • None
    • b04

      Tests like this should not be marked as failed by jtreg:

          @Test
          public void test() {
              int cpus = Runtime.getRuntime().availableProcessors();
              if (cpus < 1024) {
                  throw new org.testng.SkipException("Not enough CPUs: " + cpus);
              }
              // do the test ...
          }

      ===============================================
      Default Suite
      Total tests run: 1, Failures: 0, Skips: 1
      ===============================================

            Assignee:
            Unassigned
            Reporter:
            Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: