File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
affinity/src/test/java/net/openhft/affinity Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 22
33import net .openhft .affinity .common .ProcessRunner ;
44import net .openhft .affinity .lockchecker .FileLockBasedLockChecker ;
5+ import org .junit .Assume ;
56import org .junit .Test ;
67import org .slf4j .Logger ;
78import org .slf4j .LoggerFactory ;
89
910import java .io .IOException ;
1011import java .util .concurrent .TimeUnit ;
1112
13+ import static net .openhft .affinity .LockCheck .IS_LINUX ;
1214import static org .junit .Assert .assertNotEquals ;
1315import static org .junit .Assert .fail ;
1416
1517public 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 {
You can’t perform that action at this time.
0 commit comments