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
===============================================
@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
===============================================
- duplicates
-
CODETOOLS-7901747 jtreg treats TestNG Skip status as failure.
-
- Resolved
-