8222533: jtreg test jdk/internal/platform/cgroup/TestCgroupMetrics.java fails on SLES12.3 linux ppc64le machine
authorbobv
Fri, 10 May 2019 11:18:45 -0400
changeset 54814 207b7bf04f49
parent 54813 0fe908af327e
child 54815 1e83e1a600cb
8222533: jtreg test jdk/internal/platform/cgroup/TestCgroupMetrics.java fails on SLES12.3 linux ppc64le machine Reviewed-by: mseledtsov, dholmes
src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java
--- a/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java	Fri May 10 11:15:34 2019 -0400
+++ b/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java	Fri May 10 11:18:45 2019 -0400
@@ -108,7 +108,7 @@
         try {
             List<String> lines = Files.readAllLines(Paths.get(subsystem.path(), param));
             for (String line: lines) {
-                if (line.contains(match)) {
+                if (line.startsWith(match)) {
                     retval = conversion.apply(line);
                     break;
                 }