Skip to content

Commit ed47b7f

Browse files
committed
Disable test on JDK 16 and later
1 parent 38a638b commit ed47b7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/org/junit/internal/runners/statements/FailOnTimeoutTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ private void notTheRealCauseOfTheTimeout() {
184184
@Test
185185
public void lookingForStuckThread_threadGroupNotLeaked() throws Throwable {
186186
assumeTrue(lookingForStuckThread);
187+
assumeTrue("Thread groups can no longer be destroyed on JDK 16 and later", System.getProperty("java.vm.specification.version").compareTo("16") < 0);
188+
187189
final AtomicReference<ThreadGroup> innerThreadGroup = new AtomicReference<ThreadGroup>();
188190
final AtomicReference<Thread> innerThread = new AtomicReference<Thread>();
189191
final ThreadGroup outerThreadGroup = currentThread().getThreadGroup();

0 commit comments

Comments
 (0)