Skip to content

Commit e480a31

Browse files
committed
debugging
1 parent ec7e030 commit e480a31

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.io.IOException;
2727
import java.util.ArrayList;
2828
import java.util.List;
29+
import java.util.Properties;
2930

3031
import static org.junit.Assert.assertEquals;
3132
import static org.junit.Assert.assertNotSame;
@@ -37,6 +38,14 @@
3738
public class AffinityLockTest {
3839
private static final Logger logger = LoggerFactory.getLogger(AffinityLockTest.class);
3940

41+
@Test
42+
public void shouldDumpSystemProperties() throws Exception {
43+
final Properties systemProperties = System.getProperties();
44+
for (final String propertyName : systemProperties.stringPropertyNames()) {
45+
System.out.printf("%s = %s%n", propertyName, systemProperties.getProperty(propertyName));
46+
}
47+
}
48+
4049
@Test
4150
public void dumpLocksI7() throws IOException {
4251
LockInventory lockInventory = new LockInventory(VanillaCpuLayout.fromCpuInfo("i7.cpuinfo"));

0 commit comments

Comments
 (0)