Skip to content

Commit e8552bf

Browse files
committed
test: memory: Forcibly closing SharedMemory is dangerous on Windows
As long as futexes are waiting on shared memory, forcibly closing/unlinking it may (in rare cases) cause a JVM crash. Exclude this test from running on Windows.
1 parent 61ea64a commit e8552bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

junixsocket-memory/src/test/java/org/newsclub/net/unix/memory/SharedMemoryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ public void testFutexCloseSharedMemory() throws Exception {
544544
}
545545

546546
@Test
547+
@ExecutionEnvironmentRequirement(windows = Rule.PROHIBITED)
547548
public void testFutexCloseSharedMemoryFail() throws Exception {
548549
testFutex(true, false);
549550
}

0 commit comments

Comments
 (0)