Skip to content

Commit ce6fb63

Browse files
committed
Disable test for non-linux builds
1 parent 5046ec7 commit ce6fb63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

affinity/src/test/java/net/openhft/affinity/MultiProcessAffinityTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@
22

33
import net.openhft.affinity.common.ProcessRunner;
44
import net.openhft.affinity.lockchecker.FileLockBasedLockChecker;
5+
import org.junit.Assume;
56
import org.junit.Test;
67
import org.slf4j.Logger;
78
import org.slf4j.LoggerFactory;
89

910
import java.io.IOException;
1011
import java.util.concurrent.TimeUnit;
1112

13+
import static net.openhft.affinity.LockCheck.IS_LINUX;
1214
import static org.junit.Assert.assertNotEquals;
1315
import static org.junit.Assert.fail;
1416

1517
public class MultiProcessAffinityTest {
1618

1719
@Test
1820
public void shouldNotAcquireLockOnCoresLockedByOtherProcesses() throws IOException, InterruptedException {
21+
Assume.assumeTrue(IS_LINUX);
1922
// run the separate affinity locker
2023
final Process last = ProcessRunner.runClass(AffinityLockerProcess.class, "last");
2124
try {

0 commit comments

Comments
 (0)