Skip to content

Commit 85d76a9

Browse files
committed
fix jdk8 ref
1 parent c0e63ae commit 85d76a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public class AffinityLockTest {
4343
public void shouldDumpSystemProperties() throws Exception {
4444
if (System.getProperty("os.name").startsWith("Linux")) {
4545
final Process process = new ProcessBuilder().command("ldd", "--version").inheritIO().start();
46-
if (!process.waitFor(1, TimeUnit.SECONDS)) {
47-
System.out.println("ldd did not exit");
46+
final int exitCode = process.waitFor();
47+
if (exitCode != 0) {
48+
System.out.println("ldd did not exit cleanly: " + exitCode);
4849
}
4950
}
5051
}

0 commit comments

Comments
 (0)