File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
test/jdk/java/nio/channels/DatagramChannel Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2019, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2019, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
4747import org .junit .jupiter .api .BeforeAll ;
4848import org .junit .jupiter .api .function .Executable ;
4949import static org .junit .jupiter .api .Assertions .*;
50+ import static org .junit .jupiter .api .Assumptions .*;
5051
5152public class InterruptibleOrNot {
5253 // DatagramChannel implementation class
@@ -98,6 +99,7 @@ public void testInterruptDuringInterruptibleReceive() throws Exception {
9899 */
99100 @ Test
100101 public void testInterruptBeforeUninterruptibleReceive () throws Exception {
102+ assumeFalse (Thread .currentThread ().isVirtual ());
101103 try (DatagramChannel dc = boundDatagramChannel (false )) {
102104 ByteBuffer buf = ByteBuffer .allocate (100 );
103105 onReceive (() -> {
You can’t perform that action at this time.
0 commit comments