Skip to content

Commit

Permalink
SapMachine #1690: Fix file socket transport test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap authored Jul 23, 2024
1 parent 808933c commit c883b4f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/jdk/com/sun/jdi/FileSocketTransportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ public static void main(String[] args) throws Throwable {
System.exit(1);
}

if (Platform.isWindows()) {
try (SocketChannel channel = SocketChannel.open(StandardProtocolFamily.UNIX)) {
// Just see if we can create a unix domain socket on Windows.
} catch (UnsupportedOperationException e) {
System.out.println("Windows version is too old to support unix domain sockets.");
return;
}
}

String socketName = "test.socket";

List<String> opts = new ArrayList<>();
Expand Down

0 comments on commit c883b4f

Please sign in to comment.