We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d82287 commit 6f2b7b8Copy full SHA for 6f2b7b8
1 file changed
src/test/java/vanilla/java/affinity/AffinityLockTest.java
@@ -19,6 +19,7 @@
19
import org.junit.Test;
20
import vanilla.java.affinity.impl.VanillaCpuLayout;
21
22
+import java.io.File;
23
import java.io.IOException;
24
import java.util.ArrayList;
25
import java.util.List;
@@ -115,6 +116,9 @@ public void assignReleaseThread() throws IOException {
115
116
System.out.println("Cannot run affinity test as no threads gave been reserved.");
117
System.out.println("Use isolcpus= in grub.conf or use -D" + AffinityLock.AFFINITY_RESERVED + "={hex mask}");
118
return;
119
+ } else if (!new File("/proc/cpuinfo").exists()) {
120
+ System.out.println("Cannot run affinity test as this system doesn't have a /proc/cpuinfo file");
121
+ return;
122
}
123
AffinityLock.cpuLayout(VanillaCpuLayout.fromCpuInfo());
124
0 commit comments