Skip to content

Commit b71abb8

Browse files
committed
added unit tests for affinity implementations
1 parent 6213ee5 commit b71abb8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/test/java/vanilla/java/affinity/impl/AbstractAffinityImplTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,11 @@ private void getAffinityReturnsValuePreviouslySet( final IAffinityImpl impl,
5757
final long _mask = impl.getAffinity();
5858
assertEquals( mask, _mask );
5959
}
60+
61+
@AfterClass
62+
public void tearDown() throws Exception {
63+
final int cores = Runtime.getRuntime().availableProcessors();
64+
final int anyCore = ( 1 << cores ) - 1;
65+
getImpl().setAffinity( anyCore );
66+
}
6067
}

0 commit comments

Comments
 (0)